• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flic button as page turner
#9
Maz,

Have you actually dug into the Android SDK that is linked from the page you linked to? Read this:

Why do I need the Flic app? The fliclib works with the Flic app so that you don't have to worry about handling the Flics, scanning the Flics, or monitoring the communication with them. All of that is taken care of by the Flic app.
  1. Download and install the Flic app. It's free and you can find it in the Google Play Store.

  2. Connect all your Flics to the app.

  3. That's it! Now you will be able to use the Flic Grabber and get access to the Flics inside your own app. Don't worry, we'll go through how this is done soon.
It then proceeds to explain all of the code that has to be written in the Android application to interface with the Flic button. You do not get anything for free here. You can't just use the flic app to communicate with other apps with no code changes and no configuration. Additionally, something needs to be put in place to determine what action to take when a single button press is detected versus a double. In fact, their code doesn't even do that for you:


Code:
@Override
  public void onButtonUpOrDown(Context context, FlicButton button, boolean wasQueued, int timeDiff, boolean isUp, boolean isDown) {
    if (isUp) {
      // Code for button up event here
    } else {
      // Code for button down event here
    }
  }

That means you have to track when the down is pressed, and then up, and then see if another down/up is triggered within a certain time interval. So no, I can't just add MobileSheetsPro support for the Flic button without having to change code as I described to you in our email conversation. I'll post that again here:

Quote:That isn't the whole picture though. What is missing are things that would need to be done such as:

1) Building the UI components to initiate the connection with the Flic button and allow the user to pick which flic button they are communicating with. If I need to support connections to multiple buttons at once, this would require more work in terms of managing multiple connections and letting the user map each button to different actions.
2) Either modifying the existing pedal actions settings screen to allow the flic button to be used for that, or creating an entirely new settings screen to allow the flic buttons to be mapped to actions (the latter makes more sense). What may be necessary is a dropdown or toggle on the pedal settings screen that lets the user choose whether they are using a standard bluetooth pedal or a flic button. If multiple flic buttons are supported, another dropdown needs to be listed to determine which button is mapped to which actions. This also facilitates the need to save this information in a new format somewhere.
3) Code to automatically reconnect to buttons (if possible) so the user doesn't always have to manually initiate the connection to the buttons every time they start MobileSheetsPro.
4) I need to actually get flic buttons to test with and sign up with flic to one of their allowed "friends"

It looks like flic only supports Android and iOS, which will probably be a disappointment to Windows 10 users, but there isn't much I can do about that. As you can see, adding support for the flic buttons is not a simple task that will take 30 minutes. It's going to take a fair number of hours for all of the development and testing.

Also take a look at this: https://partners.flic.io/partners/develo...w-it-works

You, as the developer, have to specify what actions are supported through the Flic button. This is done through code changes and as part of the registration (I assume).

Mike
Reply


Messages In This Thread
Flic button as page turner - by maz - 02-02-2020, 04:38 AM
RE: Flic button as page turner - by Zubersoft - 02-02-2020, 04:48 AM
RE: Flic button as page turner - by Ann Eriksson - 10-05-2020, 01:27 AM
RE: Flic button as page turner - by BRX - 02-02-2020, 05:53 AM
RE: Flic button as page turner - by bandoneon - 02-02-2020, 10:08 PM
RE: Flic button as page turner - by maz - 02-03-2020, 03:35 AM
RE: Flic button as page turner - by Zubersoft - 02-03-2020, 04:33 AM
RE: Flic button as page turner - by maz - 02-03-2020, 06:45 AM
RE: Flic button as page turner - by BRX - 02-03-2020, 06:54 AM
RE: Flic button as page turner - by Zubersoft - 02-03-2020, 07:33 AM
RE: Flic button as page turner - by maz - 02-04-2020, 12:39 AM
RE: Flic button as page turner - by Zubersoft - 02-04-2020, 02:56 AM
RE: Flic button as page turner - by maz - 02-04-2020, 03:47 AM
RE: Flic button as page turner - by Zubersoft - 02-05-2020, 04:09 PM
RE: Flic button as page turner - by McAroni - 10-05-2020, 07:13 PM
RE: Flic button as page turner - by otnt - 10-06-2020, 02:54 AM
RE: Flic button as page turner - by BRX - 10-05-2020, 09:42 PM
RE: Flic button as page turner - by McAroni - 10-05-2020, 09:59 PM
RE: Flic button as page turner - by McAroni - 10-06-2020, 05:29 AM
RE: Flic button as page turner - by BRX - 10-06-2020, 06:05 AM
RE: Flic button as page turner - by McAroni - 10-06-2020, 07:27 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.