Skip to content

Instantly share code, notes, and snippets.

@DavidOndrus
Created July 23, 2018 09:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DavidOndrus/575838d9bab41c03b34100811d8ebcb0 to your computer and use it in GitHub Desktop.
Save DavidOndrus/575838d9bab41c03b34100811d8ebcb0 to your computer and use it in GitHub Desktop.
public void handleMessage(Message msg) {
int status = msg.getData().getInt("status");
switch (status) {
case Status.INITIALISED:
case Status.SCANNER_POWERED_ON:
case Status.READY_TO_SCAN:
case Status.FINGER_DETECTED:
case Status.RECEIVING_IMAGE:
case Status.FINGER_LIFTED:
case Status.SCANNER_POWERED_OFF:
case Status.SUCCESS:
case Status.ERROR:
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment