# SmartCard Application for Android


-------------------------------------------------------------------------------

--------------------------
## Introduction


- This application is an example of using Alcorlink SmartCard Reader library which provides classes to send CCID commands to Alcorlink SmartCard Reader
- It dose not support android version older than Android 4.0

- Library of Alcorlink SmartCard is located in folder "SmartCardApp\app\libs" and "SmartCardApp\app\src\main\jniLibs".
For more detail of library, please refer the Doc.



--------------------------
## How to Build
1. Install Android Studio 3.5 and JDK 1.8
2. After Environment is ready, copy entire SmartCardApp folder into your Android Studio work space. Open Android Studio and press `Open an existing Android Studio project`, select this project folder
  and then execute 'Build' ->  'Make Project'
3.  In 'Build' -> 'Build Bundle(s)/APK(s)...', select the your own  key.storein the keystore path.



--------------------------
## File Contents

**[source code]** :
- SmartCardApp.apk
- DOC/
- SmartCardApp/
- ReadMe.txt



--------------------------
## Known Issues

1. This Application may failed to initial USB device on android 5.x due to Android SDK bug.
Only the last plugged USB device can work normally.
Symptom:
  The UI may shows "Get Exception: UsbInterface is null" when opening Reader.
Workaround:
  Unplug and then plug again your target USB smart card reader.

2. AT88SC102 can't work on AU9520

--------------------------
## Supported Readers
- 058F 9526 AU9563 + NFC	Smart Card Reader/NFC Reader
- 058F 9520 AU9520		SAM Card Reader
- 058F 9522			SAM Card Reader
- 058F 9525			SAM Card Reader
- 058F 9540 AU9540/AU9560	SAM Card Reader
- 2CE3 9563			SAM Card Reader
- 2CE3 9571			NFC Reader
- 2CE3 9572			Smart Card Reader/NFC Reader(NFC part is deprecated)
- 2CE3 9573			Smart Card Reader/NFC Readerr(NFC part is deprecated)


--------------------------
## Suported Memory Card
- SLE4428/SLE4418
- SLE4442/4432
- SLE6636
- AT24Cxx
- AT45D041
- AT88SC102 (not on AU952X)
- AT88SC1608
- AT88SC153 

--------------------------
## Quick start
You can also run the demo project directly in an Android device. 
Copy "SmartCardApp.apk" to your Android device. 
Launch the installation by clicking the file icon on any File Explorer application.






