You can query http://code.google.com/android/reference/android/net/ConnectivityManager.html 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 at http://code.google.com/android/reference/android/provider/Settings.System.html . You will need to request permission to modify system settings in your manifest, http://code.google.com/android/reference/android/Manifest.permission.html#WRITE_SETTINGS . 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, Jose Vasconcellos <[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 -~----------~----~----~----~------~----~------~--~---

