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

From source file:Main.java

public static void showMessageByToast(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 showToastMessage(int msgId, Context context) {
    Toast.makeText(context, msgId, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

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