Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { static void showToast(Context context, String text) { Toast.makeText(context, text, Toast.LENGTH_LONG).show(); } }