Android: Set Bluetooth Discoverability Unbounded

前端 未结 6 1638
悲&欢浪女
悲&欢浪女 2021-01-06 23:57

I have spent the last couple of days trying to make an app that keeps my Samsung Galaxy S3 mini (Android 2.1.4) discoverable for an \"infinite\" amount of time. My code look

6条回答
  •  时光说笑
    2021-01-07 00:29

    I come to the same conclusion on three devices I have.

    • ANDROID v 4.3 and higher : EXTRA_DISCOVERABLE_DURATION 0 works no limit
    • ANDROIND v 4.1 : EXTRA_DISCOVERABLE_DURATION 0 is max 1 hour. Have to change manually to no limit in parameters.

提交回复
热议问题