This repository contains a simple Android app based on the code for the Android NFC tutorial at Fidesmo Developer Portal.
The app implements a user interface towards the Counter Applet, which is running on a Fidesmo Card. It implements two simple functions:
- A button to show the current value of the counter, as stored on the card.
- A button to decrement the counter. If the counter's value was 0, the card will return an error. The UI reflects it by showing a red error sign.
- Clone this repository
- In the project's root directory, type
./gradlew build
- To install the app into a connected phone or an emulator, type
./gradlew installDebug
oradb install build/apk/counter-android-client-debug-unaligned.apk
- Clone this repository
- In Android Studio, go to menu File -> Import Project
- In the dialog box "Select Gradle Project Import", find this project's root directory in your filesystem and click 'OK'
The code in this repository is not written to be released, only as an example to be shared with a customer.