RESULT_FAILED_NO_NEW_BUTTONS_FOUND when scanning for new buttons in Android 10
edufediaz.publi last edited by edufediaz.publi
i am testing the example app for Android avaiulable in the GitHub repo 50ButtonsEach (https://github.com/50ButtonsEach/flic2lib-android-sample).
The point is that the app compile without problems and it´s working really well, but only in some devices. For example, it´s working fine in a device with Android 7, but it doesn´t work in other two devices with Android 10.
The problem appears when scanning for new buttons, showing this message in the screen "RESULT_FAILED_NO_NEW_BUTTONS_FOUND".
Bluethoot is on, and no other messages appear. I cannot debug the app because i don´t have those terminals onsite and the emulator in Android Studio doesn´t support bluetooth.
Do you have any idea about what can be the problem?
Has anybody used this flic library over Android 10?
How could i debug the error without have the terminal?
Thank you very much.
@edufediaz-publi Yes, that's what we do in the Flic app.
Awesome @Emil, that was the trick. It´s needed to activate the location. Has distracted me the fact that in another device with an older Android version i don´t need to enable it. Should i ask to the user to activate the location service?
Thank you very much!!!
@Emil, ok, i will check the location permission. My Flic is 2.
@edufediaz-publi Yes it's exactly the same code. Make sure you allow the location permission, and have Location turned on, in order to perform the BLE scan.
Also make sure it's a Flic 2 and not a Flic 1.
Any ideas @Emil ?
I guess these base libraries are the same as in the official app, right?
@Emil , yes it does without any problem.
@edufediaz-publi does it work in the official Flic app?
@Emil, i did it a lot of times
This post is deleted!
Note that you need to hold down the button for at least like 7 seconds in order for it to appear.