hi all, I have traced for native Setting app for some days, I want to understand the code when user enable airplane mode then bluetooth toggle and bluetooth settings will be disable, in the WirelessSettings.java, used wireless_settings.xml layout, there are some CheckBoxPreference widget for bluettoth toggle and PreferenceScreen for bluetooth setting, besides, in the onCreate of WirelessSetting.java, do following work that I think is the key point to enable/disable bluetooth toggle and bluetooth setting when enable airplane mode ********************************** private static final String KEY_TOGGLE_AIRPLANE = "toggle_airplane"; private static final String KEY_BT_SETTINGS = "bt_settings"; CheckBoxPreference bt = (CheckBoxPreference) findPreference(KEY_TOGGLE_BLUETOOTH); ... bt.setDependency(KEY_TOGGLE_AIRPLANE); findPreference(KEY_BT_SETTINGS).setDependency(KEY_TOGGLE_AIRPLANE); **********************************
but I can't find the real code for real action of setDependency to do? the real action I mean is about enable/disable bluetooth toggle and bluetooth setting when enable airplane mode, or this is done in other side? please give me some suggestion, thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

