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 Popup(Context c, String text) {
    Toast.makeText(c, text, Toast.LENGTH_SHORT).show();
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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