Example usage for android.widget Toast makeText

List of usage examples for android.widget Toast makeText

Introduction

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

Prototype

public static Toast makeText(Context context, @StringRes int resId, @Duration int duration)
        throws Resources.NotFoundException 

Source Link

Document

Make a standard toast that just contains a text view with the text from a resource.

Usage

From source file:Main.java

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

From source file:Main.java

public static final void toastLong(Context ctx, String msg) {
    Toast.makeText(ctx, msg, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

public static void showMessage(Context ctx, String message) {
    Toast.makeText(ctx, message, Toast.LENGTH_LONG).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 displayToast(String s, Context context) {
    Toast.makeText(context, s, Toast.LENGTH_LONG).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 showToast(Context context, int resId) {
    Toast.makeText(context, resId, Toast.LENGTH_SHORT).show();
}

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();
}