List of usage examples for android.widget Toast LENGTH_SHORT
int LENGTH_SHORT
To view the source code for android.widget Toast LENGTH_SHORT.
Click Source Link
From source file:Main.java
public static void mostrarMensagemRapida(Context context, String mensagem) { Toast.makeText(context, mensagem, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void onFailedToConnect(Context context) { Toast.makeText(context, "Failed to connect to the server", Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void toast(String message) { Toast.makeText(context, message, Toast.LENGTH_SHORT); }
From source file:Main.java
public static void showToastShort(Context context, int text) { Toast.makeText(context, context.getString(text), Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void showError(String msg, Context context) { CharSequence text = msg;/*from ww w. j a v a 2 s. c o m*/ int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); return; }
From source file:Main.java
/** show toast message */ public static void showToastMsg(Context ctx, String msg) { Toast.makeText(ctx, msg, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void showToast(int stringID, Context context) { Toast.makeText(context, context.getString(stringID), Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void showToast(Context context, CharSequence message) { Toast toast = Toast.makeText(context, message, Toast.LENGTH_SHORT); toast.show(); }
From source file:Main.java
public static void showToastMessage(Context context, String message) { Toast toast = Toast.makeText(context, message, Toast.LENGTH_SHORT); toast.show(); }
From source file:Main.java
public static void showToast(Context theContext, String theMessage) { Toast toast = Toast.makeText(theContext, theMessage, Toast.LENGTH_SHORT); toast.show(); }