Android Toast Create toast(Context c, String msg)

Here you can find the source of toast(Context c, String msg)

Description

toast

Declaration

public static void toast(Context c, String msg) 

Method Source Code

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

import android.widget.Toast;

public class Main {
    public static void toast(Context c, String msg) {
        Toast.makeText(c, msg, Toast.LENGTH_SHORT).show();
    }/*from w  w w  .  j  a v a  2  s .c o  m*/
}

Related

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