I have observed issue with setting up discoverable time. Namely, I am
using following intent to start Bluetooth and request observability of
max allowed 300 seconds:

Intent activateBTIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
activateBTIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
300);
startActivityForResult(activateBTIntent,
TURN_BLUETOOTH_ON_INTENT);

In the intent result I get 300, meaning my request is accepted. But,
in fact device does not stay observable for that long. I go to
Bluetooth settings and monitor status. Discoverable is checked and
starts countdown from 300, but when it reaches 180, Discoverable is
unchecked and my device is not visible any more. So, even if I set max
allowed value, I get default 120 seconds discoverability. Can anyone
put more light on this? Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to