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 showLong(Context context, int resId) {
    Toast.makeText(context, resId, Toast.LENGTH_LONG).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void addMsg(Activity activity, String mensagem) {
    Toast.makeText(activity, mensagem, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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