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