• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Bluetooth discoverable time is always 120 seconds

anthr

Lurker
May 24, 2020
1
0
According to a documentation if you set the EXTRA_DISCOVERABLE_DURATION extra's value to 0, the device is always discoverable.

Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION,0);
startActivity(discoverableIntent);

but my phone always shoes :
>an app want to enable bluetooth and make your device visible to other device for 120 seconds.

and even if I use another number he still 120 and not only 0 ,exemple : 100,300 ...

I see that problem with lot of people but I always without any answer , please someone can help !
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones