Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    RESULT_FAILED_NO_NEW_BUTTONS_FOUND when scanning for new buttons in Android 10

    Developers
    2
    11
    1570
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • edufediaz.publi
      edufediaz.publi last edited by edufediaz.publi

      Hi all,
      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.

      no_buttons_found.jpg Android_version.jpg

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @edufediaz.publi last edited by

        @edufediaz-publi Yes, that's what we do in the Flic app.

        1 Reply Last reply Reply Quote 0
        • edufediaz.publi
          edufediaz.publi @edufediaz.publi last edited by

          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 1 Reply Last reply Reply Quote 0
          • edufediaz.publi
            edufediaz.publi @Emil last edited by

            @Emil, ok, i will check the location permission. My Flic is 2.
            Thanks!

            edufediaz.publi 1 Reply Last reply Reply Quote 0
            • Emil
              Emil FlicTeam @edufediaz.publi last edited by Emil

              @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.

              edufediaz.publi 1 Reply Last reply Reply Quote 0
              • edufediaz.publi
                edufediaz.publi @edufediaz.publi last edited by

                Any ideas @Emil ?
                I guess these base libraries are the same as in the official app, right?

                Emil 1 Reply Last reply Reply Quote 0
                • edufediaz.publi
                  edufediaz.publi @Emil last edited by

                  @Emil , yes it does without any problem.

                  edufediaz.publi 1 Reply Last reply Reply Quote 0
                  • Emil
                    Emil FlicTeam @edufediaz.publi last edited by

                    @edufediaz-publi does it work in the official Flic app?

                    edufediaz.publi 1 Reply Last reply Reply Quote 0
                    • edufediaz.publi
                      edufediaz.publi @Emil last edited by

                      @Emil, i did it a lot of times 😞

                      Emil 1 Reply Last reply Reply Quote 0
                      • edufediaz.publi
                        edufediaz.publi @Emil last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • Emil
                          Emil FlicTeam last edited by

                          Note that you need to hold down the button for at least like 7 seconds in order for it to appear.

                          edufediaz.publi 2 Replies Last reply Reply Quote 0
                          • First post
                            Last post