Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { public static void showLongMessage(Context mContext, CharSequence text) { if (text != null && text.length() > 0) { Toast.makeText(mContext, text, Toast.LENGTH_LONG).show(); } } }