04-23-2010 05:48 AM
Hi,
Is it possible to turn on/off the bluetooth connection programmatically via the API? I've had a look through the API and can't find anything that would do this although I could be missing something.
Any help much appreciated.
04-28-2010 01:21 PM
There are no APIs to programmatically enable or disable Bluetooth.
06-10-2010 06:59 AM
But I have seen applications which ask you to turn it on and they really do it. How is this possible?
06-10-2010 07:33 AM
They don't turn it on. They use Device Discovery, and the API asks to turn BlueTooth on if you don't have it on. So this is not directly program controlled.
12-09-2010 09:16 AM
Any update on this topic?
We need to control by code the switch off (and on) of BT.
Any partner program or private API to request in order to resolve this?
Thank You very much.
Stefano
CREALAB
12-09-2010 09:22 AM
welcome to the support forums.
no, there is no code for this.
rim usually does not grant access to any restricted APIs (and i have never heard of a case).
12-09-2010 10:59 AM
thank you
it is a pity - we loose opportunities about some Business application
09-15-2011 05:57 AM
I don't found any api to close the BT,but this app
puerPower can do this.
How to the 3rd app do this??
09-15-2011 05:59 AM
10-28-2011 09:58 AM
I have found this code snippet that should turn BT on:
if (!LocalDevice.isPowerOn()) {
try {
LocalDevice.getLocalDevice().setDiscoverable(Disco
} catch (BluetoothStateException e) {
e.printStackTrace();
}
}
But it requires user interaction.
Is it possible to turn BT on/off programatically but without user interaction?
Thanks.