Android Toast Create showToast(Context context, String msg)

Here you can find the source of showToast(Context context, String msg)

Description

show Toast

Declaration

public static void showToast(Context context, String msg) 

Method Source Code

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

public class Main {
    public static void showToast(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }// ww w.  ja  v  a  2s  .  co  m
}

Related

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