Most of Android Applications use Internet Connection for Performing their Task .So here is Some code Snippet to Check whether the App is Connected to Internet Connection Or Not ? So lets Start :- Step 1: First we Create a Utility Class fro Checking Internet Connection ApplicationUtility.Java public class ApplicationUtility { ConnectivityManager connectivityManager; NetworkInfo info; public boolean checkConnection(Context context) { boolean flag = false; try { connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); info = connectivityManager.getActiveNetworkInfo(); if (info.getType() == ConnectivityManager.TYPE_WIFI) { System.out.println(info.getTypeName()); flag = true; } if (info.getType() == ConnectivityManager.TYPE_MOBILE) { System.out.println(info.getTypeName()); flag = true; } ...