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 checking Network connection.
B checking only WIFI network connectivity.
C checking only Bluetooth data connection.
D checking only Ethernet data connection
+ AnswerA
+ Report