I also met this issue.

I have tried to use the System.putInt
(RadioSetting.this.getContentResolver(), System.AIRPLANE_MODE_ON,
state) to set the state of the AIRPLANE_MODE, but it has no effect.

Does anyone have corresponding experience about this?

Thanks,

Stanley

On Feb 9, 2:02 pm, Jin <android.quest...@gmail.com> wrote:
> Does anyone know the API in the 1.0 or cupcake SDK that can turn off/
> on radio orairplanemode? Thanks.
>
> On Feb 6, 1:26 am, Nick Pelly <npe...@google.com> wrote:
>
> > Actually, android.provider.Settings is just used to persist the on/off state
> > across reboot. It is not as useful as it looks. Changing these values will
> > only have an effect on startup.
>
> > In the case of Bluetooth, there is no SDK API to immediately turn it off/on
> > quite yet.
>
> > I am pretty sure there is an SDK API to turn WIFI and Telephony off/on, i'll
> > leave the relevant teams to chip in, although i'm sure its not hard to find
> > in the SDK docs.
>
> > Nick
>
> > On Thu, Feb 5, 2009 at 1:24 PM, Mark K <mark.ka...@gmail.com> wrote:
>
> > >  You can use android.provider.Settings, see the SDK docs.
>
> > >                       Mark
>
> > > On Feb 4, 2:14 am, Kamal Hasan <kamal.hasa...@gmail.com> wrote:
> > > > Hi,
>
> > > > Programatically how to switch off Radio, bluetooth and wifi in
> > > > android  ?
> > > > Can I enableairplanemode?
>
> > > > Kamal- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to