Extend Android Bluetooth Discoverability

后端 未结 2 409
说谎
说谎 2021-01-23 03:29

I am writing an application that relies on the Android device (for my current testing purposes an HTC Evo 4G and several original Motorola Droids) being discoverable via bluetoo

相关标签:
2条回答
  • 2021-01-23 03:33

    There is bluetooth DiscoverableTimeout value besides Android timeout.

    Usually, DiscoverableTimeout is set in file /system/etc/bluetooth/main.conf to 120 .

    You should write

    DiscoverableTimeout = 0
    

    in /system/etc/bluetooth/main.conf to disable bluetooth timeout. This will allow you to extend Android timeout over than 120 sec.

    0 讨论(0)
  • 2021-01-23 03:37

    It appears to be a bug:

    Issue 15486: Bluetooth Adapter.EXTRA DISCOVERABLE not obeyed http://code.google.com/p/android/issues/detail?id=15486

    Issue 13361: BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION intent Extra does not extend 120 sec discovery interval http://code.google.com/p/android/issues/detail?id=13361

    First reported Dec 22, 2010, still listed as 'new' status, so I wouldn't expect this to be fixed.

    0 讨论(0)
提交回复
热议问题