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