tags:

views:

32

answers:

1

hey in my application i have to give user an option called "BLUETOOTH"

Is it possible that i can put it ON or OFF from my code

i have no idea....

Am i doing right or just trying to do unnecessary work

+1  A: 

You can check if the Bluetooth radio is on or off using LocalDevice.isPowerOn() but there isn't a direct way to turn on the radio from code. However, if you call DiscoveryAgent.startInquiry() when the radio is off, it will prompt the user to turn Bluetooth on.

Marc Novakowski