1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android Bluetooth discoverable time is always 120 seconds

Discussion in 'Android Development' started by anthr, May 25, 2020.

  1. anthr

    anthr Lurker
    Thread Starter

    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 !
     


Loading...
Similar Threads - Android Bluetooth discoverable
  1. mikedt
    Replies:
    5
    Views:
    1,268
  2. Kishor Bapat
    Replies:
    1
    Views:
    582
  3. Android News
    Replies:
    0
    Views:
    645
  4. Android News
    Replies:
    0
    Views:
    177
  5. Rob
    Replies:
    1
    Views:
    1,131
  6. honzaZahCZ
    Replies:
    12
    Views:
    437
  7. Lubron
    Replies:
    0
    Views:
    2,485
  8. ragekage23424
    Replies:
    0
    Views:
    1,160
  9. stuarta
    Replies:
    7
    Views:
    298

Share This Page

Loading...