UniPay SDK Guide for Android  0.02.011
API reference
 All Data Structures Functions Variables Pages
Create an instance of the UniPayEMV class:

To use a device, create an instance of the UniPayEMV class by passing the activity context, the IDT_Device SDK instance, and the UniPayEMV delegate.

private UniPayEMV myUniPayEMV = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
. . . . .
if(myUniPayReader!=null){
myUniPayReader.unregisterListen();
myUniPayReader.release();
myUniPayReader = null;
}
myUniPayReader = new IDT_Device(this,this);
myUniPayReader.registerListen();
if(myUniPayEMV!=null){
myUniPayEMV = null;
}
myUniPayEMV = new UniPayEMV(this,myUniPayReader,this);
. . . . .
}