FileDocCategorySizeDatePackage
WirelessSettings.javaAPI DocAndroid 1.5 API2474Wed May 06 22:42:48 BST 2009com.android.settings

WirelessSettings

public class WirelessSettings extends android.preference.PreferenceActivity

Fields Summary
private static final String
KEY_TOGGLE_AIRPLANE
private static final String
KEY_TOGGLE_BLUETOOTH
private static final String
KEY_TOGGLE_WIFI
private com.android.settings.wifi.WifiEnabler
mWifiEnabler
private AirplaneModeEnabler
mAirplaneModeEnabler
private com.android.settings.bluetooth.BluetoothEnabler
mBtEnabler
Constructors Summary
Methods Summary
private voidinitToggles()

        
        mWifiEnabler = new WifiEnabler(
                this,
                (WifiManager) getSystemService(WIFI_SERVICE),
                (CheckBoxPreference) findPreference(KEY_TOGGLE_WIFI));
        
        mAirplaneModeEnabler = new AirplaneModeEnabler(
                this,
                (CheckBoxPreference) findPreference(KEY_TOGGLE_AIRPLANE));
        
        mBtEnabler = new BluetoothEnabler(
                this,
                (CheckBoxPreference) findPreference(KEY_TOGGLE_BLUETOOTH));
    
protected voidonCreate(android.os.Bundle savedInstanceState)

    
    
        
        super.onCreate(savedInstanceState);

        addPreferencesFromResource(R.xml.wireless_settings);

        initToggles();
    
protected voidonPause()

        super.onPause();
        
        mWifiEnabler.pause();
        mAirplaneModeEnabler.pause();
        mBtEnabler.pause();
    
protected voidonResume()

        super.onResume();
        
        mWifiEnabler.resume();
        mAirplaneModeEnabler.resume();
        mBtEnabler.resume();