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 invalidDieToast(Context ctx) {
    Toast.makeText(ctx, "Please enter valid hit point value or hit die expression.", Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void toast(Activity activity, String MSG) {
    Toast.makeText(activity, MSG, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

public static void toast(Activity activity, String msg) {
    Toast.makeText(activity, msg, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void toastLong(Context cxt, int id) {
    Toast.makeText(cxt, id, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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