Thanks a lot Yusuf, I would like to ask another question. I am trying to switch ON/OFF the GPS and Bluetooth from a widget. From http://groups.google.com/group/android-developers/browse_thread/thread/ab52d1a3a58b8179/e5acd3ffbeb9b51e?show_docid=e5acd3ffbeb9b51e and other posts, I understand that from SDK 1.5, only launching by an activity (startActivity(new Intent("android.settings.LOCATION_SOURCE_SETTINGS"));) we can have access to the GPS ON/OFF toggle functionality.
For bluetooth, I could not find any relevant information, since it looks like there is not much support for Bluetooth. I was checking HTC hero (running 1.5 SDK), and it had widgets that allow such operations. My question is if they are using their internal APIs or there is some other way of switching GPS and Bluetooth programmatically from a widget, in the standard SDK (I am using Android 1.6 SDK). Regards. carl On Tue, Sep 15, 2009 at 3:43 AM, Yusuf Saib (T-Mobile USA) <yusuf.s...@t-mobile.com <javascript:_e({}, 'cvml', 'yusuf.s...@t-mobile.com');>> wrote: This fellow seems to have code that works: http://www.mail-archive.com/android-beginners@googlegroups.com/msg06083.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 13, 5:53 pm, Carl <vapor.trail....@gmail.com <javascript:_e({}, 'cvml', 'vapor.trail....@gmail.com');>> wrote: > Hello all, > > I would like to create an application that allows the user to quickly > toggle wireless connections ON/OFF. I found the API for wi-fi > (android.net.wifi.WifiManager) but I am not able to find any API for > Bluetooth and airplane modes. > Do you have any idea where I can find such APIs or how can I have > access to the switching functionality? > > Regards > > carl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---