Android Question problems uploading to google play

cas6678

Active Member
Licensed User
Longtime User
I have an app that works fine. My TargetSdkVersion was 19, but I had to update to 29 to upload to google play.

I thought I solved all the permission problems but apparently one is missing.

My code for bluetooth connection:

B4X:
Sub conectar_Click
    conectar.Bitmap=LoadBitmap(File.DirAssets,"conectaramarillo.png")
    foundDevices.Initialize
    If admin.StartDiscovery    = False Then
        ToastMessageShow("Error starting discovery process.", True)
    Else
        ProgressDialogShow("Buscando...")
    End If
End Sub


With TargetSdkVersion 19 admin.StartDiscovery is True and everything works fine, but with Target SdkVersion29 it is False and I can't get to the connection.

What am I missing and how do I solve it?

Thanks.
 

JohnC

Expert
Licensed User
Longtime User
In order to do Bluetooth discovery you need to obtain location permission.

See this post for why this is so:

 
Last edited:
Upvote 0

cas6678

Active Member
Licensed User
Longtime User
Yes, I add

B4X:
    Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)

and work.

Thanks
 
Upvote 0
Top