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 showShortToast(String message, Context c) {
    Toast.makeText(c, message, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

}

From source file:Main.java

public static void showToast(Activity context, String message) {
    Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

public static final void showToastShort(Activity ctx, String text) {
    Toast.makeText(ctx, text, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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