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 myNotify(Context context, String info) {
    Toast.makeText(context, info, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

public static void popTipOrWarn(Context ctx, String txt) {
    Toast.makeText(ctx, txt, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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