Hi, I found in the Android documentation how to turn Bluetooth
discoverability mode on:

Intent discoverableIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,
300);
startActivity(discoverableIntent);
This will make the device discoverable for 300 seconds.

My question is: how to turn discoverability OFF before this timeout
occurs? I'd like to replicate the corresponding setting in Settings|
Wireless and networks|Bluetooth settings applet, that allows
discoverability to be turned on and off with a click.

Any help?

Thanks ;)

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