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
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/
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;
}
3 matches
Mail list logo