Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.widget.Toast; public class Main { public static void showLongToast(Context context, String message) { showToast(context, message, Toast.LENGTH_LONG); } public static void showToast(Context context, String message, int duration) { Toast.makeText(context, message, duration).show(); } }