Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { /** * Zeigt einen Toast an * @param text Anzuzeigender Text * @param context */ public static void showToast(String text, Context context) { int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); } }