Example usage for android.widget Toast LENGTH_SHORT

List of usage examples for android.widget Toast LENGTH_SHORT

Introduction

In this page you can find the example usage for android.widget Toast LENGTH_SHORT.

Prototype

int LENGTH_SHORT

To view the source code for android.widget Toast LENGTH_SHORT.

Click Source Link

Document

Show the view or text notification for a short period of time.

Usage

From source file:Main.java

public static void toastShown(Context context, String str) {
    Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void showShortToast(Context context, String msg) {
    Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void showToast(CharSequence message, Context context) {
    int duration = Toast.LENGTH_SHORT;

    Toast toast = Toast.makeText(context.getApplicationContext(), message, duration);
    toast.show();/*w  ww  . j a va  2  s  . com*/
}

From source file:Main.java

public static void makeText(Context context, String string) {
    Toast.makeText(context, string, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void showToast(Context context, int resId) {
    Toast.makeText(context, resId, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void ToastMessage(Context cont, String msg) {
    Toast.makeText(cont, msg, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void showToast(Context context, String msg) {
    Toast.makeText(context, msg + "", Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void makeToast(Context context, String s) {

    makeToast(context, s, Toast.LENGTH_SHORT);
}

From source file:Main.java

public static void addMsg(Activity activity, String mensagem) {
    Toast.makeText(activity, mensagem, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static void showToast(Context context, String content) {
    Toast.makeText(context, content, Toast.LENGTH_SHORT).show();

}