Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Toast; public class Main { public static void onFailedToConnect(Context context) { Toast.makeText(context, "Failed to connect to the server", Toast.LENGTH_SHORT).show(); } }