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 SLMessage(Context context, String text) {
    Toast.makeText(context, text, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void toast_mess(Context ctx, String message) {
    Toast.makeText(ctx, message, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void showLongToast(String message, Context c) {
    Toast.makeText(c, message, Toast.LENGTH_LONG).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 makeText(Context context, String string) {
    Toast.makeText(context, string, Toast.LENGTH_SHORT).show();
}