Here you can find the source of makeToast(Context context, String message, boolean longTime)
public static void makeToast(Context context, String message, boolean longTime)
//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(); } } }