Example usage for android.widget Toast LENGTH_SHORT

List of usage examples for android.widget Toast LENGTH_SHORT

Introduction

In this page you can find the example usage for android.widget Toast LENGTH_SHORT.

Prototype

int LENGTH_SHORT

To view the source code for android.widget Toast LENGTH_SHORT.

Click Source Link

Document

Show the view or text notification for a short period of time.

Usage

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

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(Activity context, String message) {
    Toast.makeText(context, message, Toast.LENGTH_SHORT).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 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();
}

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 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();

}