Android Toast Create makeToast(Context context, String message, boolean longTime)

Here you can find the source of makeToast(Context context, String message, boolean longTime)

Description

make Toast

Declaration

public static void makeToast(Context context, String message,
            boolean longTime) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.widget.Toast;

public class Main {
    public static void makeToast(Context context, String message,
            boolean longTime) {
        if (longTime) {
            Toast.makeText(context, message, Toast.LENGTH_LONG).show();
        } else {/*ww  w . jav  a 2 s  .  co  m*/
            Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
        }
    }
}

Related

  1. msgLong(Context context, String msg)
  2. msgLong(final Context c, final String msg)
  3. msgLong(final Context context, final String msg)
  4. msgShort(Context context, String msg)
  5. makeToast(Context appContext, String valueToShow)
  6. sendMsg(Context context, String msg)
  7. sendMsg(Context context, String msg)