3

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

Taras
  • 2,506
  • 3
  • 30
  • 61

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,033
  • 21
  • 41
-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