Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { public static void internetErrorMessage(Context ctx) { Toast.makeText(ctx, "Error In Internet Connection", Toast.LENGTH_LONG).show(); } }