• Popular
  • Users
  • Login
Flic Home

Community

  • Login
  • Search
  • Popular
  • Users

RESULT_FAILED_NO_NEW_BUTTONS_FOUND when scanning for new buttons in Android 10

Developers
2
11
2.6k
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 1 Oct 2020, 10:19 1 Oct 2020, 09:59

    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 13 Oct 2020, 13:35

      @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 13 Oct 2020, 13:01

        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 13 Oct 2020, 13:35 Reply Quote 0
        • edufediaz.publi
          edufediaz.publi @Emil last edited by 13 Oct 2020, 10:49

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

          edufediaz.publi 1 Reply Last reply 13 Oct 2020, 13:01 Reply Quote 0
          • Emil
            Emil FlicTeam @edufediaz.publi last edited by Emil 13 Oct 2020, 10:25 13 Oct 2020, 10:25

            @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 13 Oct 2020, 10:49 Reply Quote 0
            • edufediaz.publi
              edufediaz.publi @edufediaz.publi last edited by 13 Oct 2020, 07:38

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

              Emil 1 Reply Last reply 13 Oct 2020, 10:25 Reply Quote 0
              • 7 days earlier
              • edufediaz.publi
                edufediaz.publi @Emil last edited by 6 Oct 2020, 07:26

                @Emil , yes it does without any problem.

                edufediaz.publi 1 Reply Last reply 13 Oct 2020, 07:38 Reply Quote 0
                • Emil
                  Emil FlicTeam @edufediaz.publi last edited by 4 Oct 2020, 17:23

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

                  edufediaz.publi 1 Reply Last reply 6 Oct 2020, 07:26 Reply Quote 0
                  • edufediaz.publi
                    edufediaz.publi @Emil last edited by 3 Oct 2020, 07:15

                    @Emil, i did it a lot of times 😞

                    Emil 1 Reply Last reply 4 Oct 2020, 17:23 Reply Quote 0
                    • edufediaz.publi
                      edufediaz.publi @Emil last edited by 3 Oct 2020, 07:08

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • Emil
                        Emil FlicTeam last edited by 2 Oct 2020, 21:32

                        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 3 Oct 2020, 07:15 Reply Quote 0
                        4 out of 11
                        • First post
                          4/11
                          Last post