List of usage examples for android.widget Toast show
public void show()
From source file:Main.java
protected static void showToast(Context context, String msg, int length) { Toast toast = Toast.makeText(context, msg, length); toast.show(); }
From source file:Main.java
public static void showToast(String message, Context context) { int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, message, duration); toast.show(); }
From source file:Main.java
public static void showToast(String message, Context context) { CharSequence text = message;/*from w w w. j av a 2 s. co m*/ int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); }
From source file:Main.java
public static void showToast(Context con, String message) { Toast toast = Toast.makeText(con, message, Toast.LENGTH_LONG); toast.show(); }
From source file:Main.java
public static void showToast(Context ctx, String message) { Toast t = Toast.makeText(ctx, message, Toast.LENGTH_SHORT); t.show(); }
From source file:Main.java
/** * Zeigt einen Toast an/*from w w w . j a v a 2 s .c om*/ * @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(); }
From source file:Main.java
public static void showTips(Context ctx, String msg) { int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(ctx, msg, duration); toast.show(); }
From source file:Main.java
public static void createToast(Context ctx, String value) { Toast toast = Toast.makeText(ctx, value, Toast.LENGTH_LONG); toast.show(); }
From source file:Main.java
public static void displayToast(String message, Context context) { int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, message, duration); toast.show(); }
From source file:Main.java
public static void showToastMessage(Context context, String msg) { Toast toast = Toast.makeText(context, msg, Toast.LENGTH_LONG); toast.show(); }