Java Code Examples for android.telephony.TelephonyManager#DATA_SUSPENDED
The following examples show how to use
android.telephony.TelephonyManager#DATA_SUSPENDED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Device.java From AIMSICDL with GNU General Public License v3.0 | 6 votes |
String getDataState(TelephonyManager tm) { int state = tm.getDataState(); mDataState = "undef"; mDataStateShort = "un"; switch (state) { case TelephonyManager.DATA_DISCONNECTED: mDataState = "Disconnected"; mDataStateShort = "Di"; break; case TelephonyManager.DATA_CONNECTING: mDataState = "Connecting"; mDataStateShort = "Ct"; break; case TelephonyManager.DATA_CONNECTED: mDataState = "Connected"; mDataStateShort = "Cd"; break; case TelephonyManager.DATA_SUSPENDED: mDataState = "Suspended"; mDataStateShort = "Su"; break; } return mDataState; }
Example 2
Source File: CellTracker.java From AIMSICDL with GNU General Public License v3.0 | 6 votes |
public void onDataConnectionStateChanged(int state) { switch (state) { case TelephonyManager.DATA_DISCONNECTED: mDevice.setDataState("Disconnected"); mDevice.setDataStateShort("Di"); break; case TelephonyManager.DATA_CONNECTING: mDevice.setDataState("Connecting"); mDevice.setDataStateShort("Ct"); break; case TelephonyManager.DATA_CONNECTED: mDevice.setDataState("Connected"); mDevice.setDataStateShort("Cd"); break; case TelephonyManager.DATA_SUSPENDED: mDevice.setDataState("Suspended"); mDevice.setDataStateShort("Su"); break; } }