Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android java Check Wifi Connection

ConnectivityManager connManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);

if (mWifi.isConnected()) {
    // Do whatever
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #java #Check #Wifi #Connection
ADD COMMENT
Topic
Name
5+7 =