Monday, April 23, 2012

Checking internet connection

I check the connection with



ConnectivityManager connec = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
android.net.NetworkInfo wifi = connec.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
android.net.NetworkInfo mobile = connec.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);


i have wifi and i get wrong status on my cell phone what could i do ?





No comments:

Post a Comment