Thank you Justin. I prefer that the user disables communications themselves.
I was aware of the ConnectivityManager but what is not clear is how to verify that the radios are off. No connectivity doesn't necessarily mean that the radios aren't looking for a signal or broadcasting a periodic beacon. Take the case of use of the device in an airplane. The radios must be off in order to use the device to play games or listen to mp3s. I need to verify this in order to activate an activity. Jose On Oct 28, 7:51 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > You can > queryhttp://code.google.com/android/reference/android/net/ConnectivityMana... > for the status of the network. You can also register for connectivity > change broadcasts. Your BroadcastReceiver could then trigger an > Activity if there is not network connectivity. > > To set the status of Bluetooth, look > athttp://code.google.com/android/reference/android/provider/Settings.Sy... > . You will need to request permission to modify system settings in > your > manifest,http://code.google.com/android/reference/android/Manifest.permission.... > . In general you should inform the user when you make such system-wide > settings changes. Alternately it may be better to prompt them to make > the changes themselves. In Settings > Wireless Controls there is a > setting for airplane mode. > > Cheers, > Justin > Android Team @ Google > > On Oct 24, 10:06 pm,JoseVasconcellos <[EMAIL PROTECTED]> wrote: > > > I would like to run anactivityonly if all communication paths (e.g. > > gsm, wifi, bluetooth) are disabled. Is that possible? > > > A related questions, how to disable wirelesscommunications? Is that > > not a requirement in order to use android in a plane? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

