Android Toast Create showToast(Context context, String message)

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

Description

show Toast

Declaration

public static void showToast(Context context, String message) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.widget.Toast;

public class Main {
    public static void showToast(Context context, String message) {

        Toast.makeText(context, message, Toast.LENGTH_LONG).show();
    }/*from  w  w w.j a v a  2  s .c  o m*/
}

Related

  1. showMessage(final Activity activity, final String message)
  2. showToast(Activity activity, String message)
  3. showToast(final Activity ctx, final String text, final int position, final boolean alive)
  4. makeToast(String msg, int length, Activity mainAct)
  5. displayToast(String message, Activity activity)
  6. showToast(Context context, int id)
  7. showToast(Context context, int stringId)
  8. showToast(String text, Context context)
  9. showToast(final Context context, String text)