In Android 2.0 +:

   Intent enableIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
   startActivityForResult(enableIntent, REQUEST_ENABLE_BT);



On May 4, 2:09 am, Dan Forever <[email protected]> wrote:
> I'm looking to create a button in my app that essentially does the
> same thing as if a user went to "Settings"->"Wireless & Networks"->"Bluetooth 
> settings" and opted to connect (or disconnect) to a
>
> previously paired bluetooth device.
>
> Unfortunately I can't see how this is done from the android bluetooth
> api. Am I looking in the wrong place? Is there an Intent that can be
> sent to act as a shortcut to that settings menu option?
>
> Thank you for any suggestions you can offer
> - Dan
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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