Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { /** * Show a toaster witht message * @param con * @param message */ public static void showToaster(Context con, String message) { Toast toast = Toast.makeText(con, message, Toast.LENGTH_LONG); toast.show(); } }