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