Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { public static void notifyNoConnection(Context context) { Toast.makeText(context, "No internet connection", Toast.LENGTH_SHORT).show(); } }