Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { /** * Shows a long toast * * @param context: The current context * @param msg: The toast's message */ public static void showLongToast(Context context, CharSequence msg) { Toast.makeText(context, msg, Toast.LENGTH_LONG).show(); } }