Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Get flic button name (Android)

    Developers
    4
    5
    3677
    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.
    • meyer.timm
      meyer.timm last edited by

      Hi,

      while I in general got everything working on Android, it seems there is no option to get the name of a flic button the user set. Am I just overlooking something? I want to show the user within my app which buttons are linked to what actions, but just using the mac adress (or the closest thing to something human readable is the "name" extra in the Intent object during grabbing of the button but even that is just the bluetooth name and not what the user did set) is not really user-friendly.

      Kind regards...
      Timm

      1 Reply Last reply Reply Quote 0
      • pdo.smith
        pdo.smith @meyer.timm last edited by

        @Emil It is still not in the online javadoc

        1 Reply Last reply Reply Quote 0
        • Emil
          Emil FlicTeam @domas last edited by

          @domas Thanks for that info. I just found that we created a bug when we refactored the app in the beginning of January that makes getName() always return null... We'll fix this in the next Flic app release.

          1 Reply Last reply Reply Quote 0
          • domas
            domas last edited by

            I can't seem to retrieve the names of flic buttons. My app has two buttons connected and both has the name of null. They do have correct colors and differentiating IDs but getName() is null. Any solutions to that?

            Emil 1 Reply Last reply Reply Quote 0
            • meyer.timm
              meyer.timm last edited by

              Well for others looking, seems like I found it

              FlicButton.getName()

              which is actually quite obvious, but it just isn't listed in the online javadoc:
              https://partners.flic.io/partners/developers/documentation/android/io/flic/lib/FlicButton.html

              pdo.smith 1 Reply Last reply Reply Quote 0
              • First post
                Last post