3

Is it possible to enable/disable Bluetooth tethering programmatically on Android?

Taras
  • 2,526
  • 3
  • 33
  • 63

2 Answers2

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

Community
  • 1
  • 1
pmont
  • 2,083
  • 22
  • 43
-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