[android-beginners] Re: How to set airplane mode on/off.

2009-01-19 Thread Jean-Baptiste Queru
You shouldn't. Changing such a setting is the user's responsibility. JBQ On Sun, Jan 18, 2009 at 10:02 PM, Naeem naimidr...@gmail.com wrote: Hi All, I want to switch on/off airplane mode programmatically. How can I do this. Anybody can help me. Thaks -- Jean-Baptiste M. JBQ Queru

[android-beginners] Re: How to set airplane mode on/off.

2009-01-19 Thread levis501
Seems reasonable enough that one could write a different interface for changing this setting. Rings Extended is a great example of such an improvement. I suggest checking out the android source and seeing how this is done in the settings app. For instance, in packages/apps/

[android-beginners] Re: How to set airplane mode on/off.

2009-01-19 Thread Naeem
Thank u so much Levis. This source code is working. public static boolean isAirplaneModeOn(Context context) { return Settings.System.getInt(context.getContentResolver (),Settings.System.AIRPLANE_MODE_ON, 0) != 0; }