You can define the time for which the device should be discoverable by using the intent extra tool. Sellectinh 0 as the duration will deactivate the timeout and leave the device visible indefinitely. (or until bluetooth is turned off.) https://developer.android.com/guide/topics/connectivity/bluetooth.html, look at the section Enabling discoverabilityI do not know how to make it invisible again.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/f631b443-fe5d-4b07-b13f-942d279426cc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.