On Mon, Feb 9, 2009 at 4:44 AM, Stanley.lei <[email protected]>wrote:

>
> 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?
>

As I explained, this just persists the state across reboot, and you will not
see the result unless you reboot. This is not the right API to make an
immediate change to airplane mode. It is possible these API's are not in the
public SDK yet - this should be easy to work out by looking at the Settings
Application implementation in our codebase.


>
> Thanks,
>
> Stanley
>
> On Feb 9, 2:02 pm, Jin <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote:
> >
> > > >  You can use android.provider.Settings, see the SDK docs.
> >
> > > >                       Mark
> >
> > > > On Feb 4, 2:14 am, Kamal Hasan <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to