Hi, I have an App with Bluetooth connection to another device.
To listen to the bluetooth I have this piece of code, from the Examples of Erel:
How do I know if the user has refused permission?
Thanks for your help
To listen to the bluetooth I have this piece of code, from the Examples of Erel:
B4X:
Public Sub ListenForConnections
'this intent makes the device discoverable for 300 seconds.
Dim i As Intent
i.Initialize("android.bluetooth.adapter.action.REQUEST_DISCOVERABLE", "")
i.PutExtra("android.bluetooth.adapter.extra.DISCOVERABLE_DURATION", 300)
StartActivity(i)
serial.Listen
End Sub
How do I know if the user has refused permission?
Thanks for your help