I run this code:
Sytem asks the user for permission. User clicks OK and the device switch to the discoverable mode.
How to detect when the device is again switched to the standard mode ?
B4X:
Dim i As Intent
i.Initialize("android.bluetooth.adapter.action.REQUEST_DISCOVERABLE", "")
i.PutExtra("android.bluetooth.adapter.extra.DISCOVERABLE_DURATION", 15)
StartActivity(i)
Sytem asks the user for permission. User clicks OK and the device switch to the discoverable mode.
How to detect when the device is again switched to the standard mode ?