-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 12 running java example (sample) #798
Comments
Could you describe in more detail what steps did you take that ended up with such result? |
If you could checkout branch |
Here it is (from the branch "fix/permissions_logging". Hopefully this helps.
|
Awesome, thank you. TIL that calling I will need to think if the library should warn the user and return null in case connect permission is not granted or leave it as it is |
It should be just a formality but you could check |
Thanks, but this did not work for me. |
I have changed the list adapter to use device name from the advertisement class which should not need the permission I think. Unless there is something else now. Could you share what is the exception now? |
Same exception: |
When run for the first time a message will show: After pressing 'Allow' the exception is generated in the debugger. |
There should be no more access to the device name in the code of ScanActivity. Are you able to pinpoint the place / stacktrace of the exception? I would do it myself but I don't have access to Android 12 phone |
Thanks for following this through. |
I am happy to give you remote access to my PC if you want. If so please send me an email ([email protected]). |
I think I might have found the problem. Could you pull |
Yes, you did. Thank you very much! Should I close this issue or do you want to add some additional comment? |
Anyone found a solution to this? Running the java sample in Android 12 results to (debug mode):
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for AttributionSource ......
Older Android versions do not ask for this permission and seem to work fine!
R1.15.1
Android Studio Chipmunk 2021.2.1 Patch 1
Sdk 32
The text was updated successfully, but these errors were encountered: