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