What does the following code do?
public boolean isOnline() {
ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
return (networkInfo != null && networkInfo.isConnected());
}
Correct Answer: checking Network connection.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Android Programming MCQ Questions