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 showToast(Context context, int messageResId) {
    Toast.makeText(context, messageResId, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void showToastShort(Context context, int text) {
    Toast.makeText(context, context.getString(text), Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void toastShow(Context paramContext, int paramInt) {
    Toast.makeText(paramContext, paramInt, 0).show();
}

From source file:Main.java

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