public class

HtcMobileNetworkEngine

extends Object
java.lang.Object
   ↳ android.net.HtcMobileNetworkEngine

Summary

Constants
int SUMMARY_CONNECTED
int SUMMARY_CONNECTING
int SUMMARY_DISCONNECTED
int SUMMARY_DISCONNECTED_APN_ERROR
int SUMMARY_DISCONNECTED_DENIED
int SUMMARY_DISCONNECTED_ENABLED
int SUMMARY_DISCONNECTED_ERROR
int SUMMARY_DISCONNECTED_RADIO_OFF
int SUMMARY_DISCONNECTED_ROAMING_ERROR
int SUMMARY_DISCONNECTED_WIFI_ON
int SUMMARY_DISCONNECTED_WIMAX_4G_ON
int SUMMARY_DISCONNECTED_WIMAX_WB_ON
int SUMMARY_DISCONNECTED_WIMAX_WX_ON
int SUMMARY_INIT
Public Constructors
HtcMobileNetworkEngine(Context context)
Public Methods
boolean getCheckedState()
Returns the check state of switcher.
boolean getEnableState()
Returns the enable state of switcher.
static HtcMobileNetworkEngine getInstance(Context context)
boolean getSettingsEnableState()
Returns the enable state of Some items in Mobile Network Settings.
int getSummaryType()
Returns the summary type of current network state.
void onCheckStateChange(boolean checked)
void onEnableStateChange(boolean enabled)
void onSettingsEnableStateChange(boolean enabled)
void onSummaryChange(int status)
Callback invoked when summary changes.
void release()
void setMobileNetworkEnabled(boolean checked)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int SUMMARY_CONNECTED

Constant Value: 2 (0x00000002)

public static final int SUMMARY_CONNECTING

Constant Value: 1 (0x00000001)

public static final int SUMMARY_DISCONNECTED

Constant Value: 3 (0x00000003)

public static final int SUMMARY_DISCONNECTED_APN_ERROR

Constant Value: 5 (0x00000005)

public static final int SUMMARY_DISCONNECTED_DENIED

Constant Value: 6 (0x00000006)

public static final int SUMMARY_DISCONNECTED_ENABLED

Constant Value: 8 (0x00000008)

public static final int SUMMARY_DISCONNECTED_ERROR

Constant Value: 4 (0x00000004)

public static final int SUMMARY_DISCONNECTED_RADIO_OFF

Constant Value: 9 (0x00000009)

public static final int SUMMARY_DISCONNECTED_ROAMING_ERROR

Constant Value: 7 (0x00000007)

public static final int SUMMARY_DISCONNECTED_WIFI_ON

Constant Value: 10 (0x0000000a)

public static final int SUMMARY_DISCONNECTED_WIMAX_4G_ON

Constant Value: 11 (0x0000000b)

public static final int SUMMARY_DISCONNECTED_WIMAX_WB_ON

Constant Value: 12 (0x0000000c)

public static final int SUMMARY_DISCONNECTED_WIMAX_WX_ON

Constant Value: 13 (0x0000000d)

public static final int SUMMARY_INIT

Constant Value: 0 (0x00000000)

Public Constructors

public HtcMobileNetworkEngine (Context context)

Public Methods

public boolean getCheckedState ()

Returns the check state of switcher.

public boolean getEnableState ()

Returns the enable state of switcher.

public static HtcMobileNetworkEngine getInstance (Context context)

public boolean getSettingsEnableState ()

Returns the enable state of Some items in Mobile Network Settings. Per Sense 4.0 spec, when air mode on or no sim, only Data Roaming and Data Roaming Sound could be enable in Mobile Network Settings.

public int getSummaryType ()

Returns the summary type of current network state.

public void onCheckStateChange (boolean checked)

Parameters
checked Check status

public void onEnableStateChange (boolean enabled)

Parameters
enabled Enable status

public void onSettingsEnableStateChange (boolean enabled)

Parameters
enabled Enable status

public void onSummaryChange (int status)

Callback invoked when summary changes.

Parameters
status summary status
See Also

public void release ()

public void setMobileNetworkEnabled (boolean checked)