Initialize the SDK.
void initialize(Context context, DeviceListener listener)
context
: application context.listener
: A callback listener that receives callback data from the device.
Run the SDK service.
int run()
Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
Get the SDK/Firmware versions.
int getVersions(Versions versions)
versions
: version information(SDK / Firmware / Fingerprint library / Card library)Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
Get the device information.
int getDeviceInfo(Device device)
device
: device informationReturns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
Automatically launch the application when Android starts.
int setAutoStartApplication(boolean enable)
Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
connect to the FTP server.
int connectFtpServer(FirmwareOption option)
option
: Firmware file option.Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Disconnects to the FTP server.
int disconnectFtpServer()
Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Get a list of file names for the FTP server.
int getFtpFileList(ArrayList<String> fileList)
fileList
: List of file namesReturns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
<uses-permission android:name="android.permission.INTERNET"/>
Get a list of firmware file names for USB.
int getUsbFileList(ArrayList<String> fileList)
fileList
: file name listReturns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
Copy the upgrade file to the specified firmware file.
int upgradeFirmware(FirmwareOption option)
option
: Firmware File OptionReturns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Reboot the device.
int rebootDevice()
Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.