Is it possible to enable/disable Bluetooth tethering programmatically on Android?
Asked
Active
Viewed 3,426 times
2 Answers
0
Contrary to ling.s's answer, Bluetooth tethering can be controlled programmatically. Refer to the sample code that I posted at
https://stackoverflow.com/a/22668259/705483
Replace "isTetheringOn" with "setBluetoothTethering" in the reflection call and pass in a boolean param (also see the first thread linked in that answer).
-1
Make this function in thread
BluetoothAdapter btadapter = BluetoothAdapter.getDefaultAdapter();
btadapter.disable();
btadapter.enable();
may it helps u.

Poovizhirajan N
- 1,263
- 1
- 13
- 29
-
Thanks for your answer. This code just restarts a BT adapter, and it doesn't related to tethering. – Taras Mar 25 '13 at 09:40
-
No. I'm asking about Bluetooth tethering (Internet sharing over Bluetooth) – Taras Mar 25 '13 at 09:49