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 applyCourse(Context context, String result) {
    Toast.makeText(context, result, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

public static void mensagem(Context context, String mensagem) {

    Toast.makeText(context, mensagem, Toast.LENGTH_SHORT).show();

}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void showToast(Context a, String msg, int length) {
    Toast.makeText(a, msg, length).show();
}