Question: 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());
}
A
B
C
D
checking Network connection.
B
checking only WIFI network connectivity.
C
checking only Bluetooth data connection.
D
checking only Ethernet data connection
Note: Not available