Android Question printing bluetooth Android 7

benji

Active Member
Licensed User
Longtime User
hello,
i have many aplications for tickets with bluetooth printer, but yesterday one of that app didn't connect the printer. Is a new device (Lenovo Tablet) with Android 7. Search for bluetooth devices, but nothing found.
my problem is Android 7 permissions?
in the manifest, i have AddPermission(android.permission.BLUETOOTH) and AddPermission(android.permission.BLUETOOTH_ADMIN).

i have B4A 5.02 version

Thanks in advance...
 

DonManfred

Expert
Licensed User
Longtime User
See the first link. If you want to publish your app to the playstore then you´ll get forced to use targetsdk of 26.

You need to provide more dtailed infos to help us help you. I could not guess that you are not using targetsdk 26 (which you should)
 
Upvote 0

benji

Active Member
Licensed User
Longtime User
i see the link, i don't publish the app.
it's a old app, and always works in devices with android 4.0 - 4.4, but now i need to work in android 7
if i use setting to find bluetooth devices, find my printer and others
 
Upvote 0

benji

Active Member
Licensed User
Longtime User
to finish history... i update mi version to 8.30, add only this lines, to test...
B4X:
rp.CheckAndRequest(rp.PERMISSION_ACCESS_COARSE_LOCATION)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)

i forget change de sdk number, but it works, and don't ask for permissions

well, now works, later i update my app.

Thanks.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…