Android Toast Create toast(Context context, String text)

Here you can find the source of toast(Context context, String text)

Description

toast

Declaration

public static final void toast(Context context, String text) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.widget.Toast;

public class Main {
    public static final void toast(Context context, String text) {
        Toast.makeText(context, text, Toast.LENGTH_SHORT).show();
    }/*from  ww  w.ja va2  s .co m*/
}

Related

  1. showToask(Context context, String tip)
  2. showToast(Context context, String msg)
  3. toast(Context c, String msg)
  4. showToastShort(Activity ctx, String text)
  5. showToastLong(Activity ctx, String text)
  6. showMessage(Context ctx, String msg)