*public* AirplaneModeEnabler*(*Context context, CheckBoxPreference
airplaneModeCheckBoxPreference*)* *{*

        mContext = context;
        mCheckBoxPref = airplaneModeCheckBoxPreference;

        airplaneModeCheckBoxPreference.setPersistent*(**false**)*;

        mPhoneStateReceiver = *new*
PhoneStateIntentReceiver*(*mContext, mHandler*)*;
        mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;
    *}*

This is the function code you could trigger when check/uncheck radio in
Setting->wireless network->airplant mode,

mPhoneStateReceiver.notifyServiceState*(*EVENT_SERVICE_STATE_CHANGED*)*;


On Sun, Aug 8, 2010 at 2:31 AM, Webgenius <webgenius.co...@gmail.com> wrote:

> Hi,
>
> In AirplaneModEnabler.java present in ..\packages\apps\Settings\src\com
> \android\settings, the handler looks for EVENT_SERVICE_STATE_CHANGED
> to toggle the state of the checkbox and to display the summary.
>
> When and from where is EVENT_SERVICE_STATE_CHANGED triggered?
> Currently the airplane mode functionality is very weird. I need to
> debug from the point where this event is triggered.
>
> Any help is greatly appreciated. Thanks in advance.
>
> -Webgenius
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010.
> For more information about this change, please read [http://goo.gl/xkfl]
> or visit the Group home page.
>
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to