WifiManager lWifiManager = (WifiManager)
IntroVideoActivity.this.getSystemService(Context.WIFI_SERVICE);
TelephonyManager lTelephonyManager = (TelephonyManager)
IntroVideoActivity.this.getSystemService(Context.TELEPHONY_SERVICE);

////////////////////////////
// if we have a fast connection (wifi or 3g),
if( (lWifiManager.isWifiEnabled() && lWifiManager.getConnectionInfo() !=
null && lWifiManager.getConnectionInfo().getIpAddress() != 0) ||
       (lTelephonyManager.getNetworkType() ==
TelephonyManager.NETWORK_TYPE_UMTS  && lTelephonyManager.getDataState() ==
TelephonyManager.DATA_CONNECTED) ){

}

just add all nesecary permissions to manifest file

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to