List of utility methods to do Network Information Get
NetworkInfo | getNetworkInfo(Context context) get Network Info ConnectivityManager cm = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
return cm.getActiveNetworkInfo();
|
NetworkInfo | getNetworkInfo(Context context) Get the network info ConnectivityManager cm = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
return cm.getActiveNetworkInfo();
|
String | getProvidersName(Context context) get Providers Name String ProvidersName = null; TelephonyManager tm = (TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE); String IMSI = tm.getDeviceId(); if (IMSI.startsWith("46000") || IMSI.startsWith("46002")) { ProvidersName = ""; } else if (IMSI.startsWith("46001")) { ProvidersName = ""; ... |
int | getCallState(TelephonyManager tm) get Call State return tm.getCallState();
|
String | getDeviceId(TelephonyManager tm) get Device Id return tm.getDeviceId();
|
String | getDeviceSoftwareVersion(TelephonyManager tm) get Device Software Version return tm.getDeviceSoftwareVersion();
|
String | getLine1Number(TelephonyManager tm) get Line Number return tm.getLine1Number();
|
String | getNetworkCountryIso(TelephonyManager tm) get Network Country Iso return tm.getNetworkCountryIso();
|
String | getNetworkOperator(TelephonyManager tm) get Network Operator return tm.getNetworkOperator();
|
String | getNetworkOperatorName(TelephonyManager tm) get Network Operator Name return tm.getNetworkOperatorName();
|