OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:activeInfo
(Results
1 - 4
of
4
) sorted by null
/developers/build/prebuilts/gradle/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/
MainActivity.java
97
NetworkInfo
activeInfo
= connMgr.getActiveNetworkInfo();
98
if (
activeInfo
!= null &&
activeInfo
.isConnected()) {
99
wifiConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_WIFI;
100
mobileConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_MOBILE;
/developers/samples/android/connectivity/network/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/
MainActivity.java
97
NetworkInfo
activeInfo
= connMgr.getActiveNetworkInfo();
98
if (
activeInfo
!= null &&
activeInfo
.isConnected()) {
99
wifiConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_WIFI;
100
mobileConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_MOBILE;
/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/
MainActivity.java
97
NetworkInfo
activeInfo
= connMgr.getActiveNetworkInfo();
98
if (
activeInfo
!= null &&
activeInfo
.isConnected()) {
99
wifiConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_WIFI;
100
mobileConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_MOBILE;
/development/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java
132
NetworkInfo
activeInfo
= connMgr.getActiveNetworkInfo();
133
if (
activeInfo
!= null &&
activeInfo
.isConnected()) {
134
wifiConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_WIFI;
135
mobileConnected =
activeInfo
.getType() == ConnectivityManager.TYPE_MOBILE;
Completed in 1900 milliseconds