Sub Process_Globals
Private NativeMe As JavaObject
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
NativeMe.InitializeContext
End If
End Sub
Sub button1_Click
NativeMe.RunMethod("printpix", Null)
End Sub
#If Java
import com.bxl.config.editor.BXLConfigLoader;
import jpos.config.JposEntry;
import jpos.POSPrinter;
import jpos.POSPrinterConst;
import com.bxl.BXLConst;
public void printpix(){
try
{
POSPrinter posPrinter = new POSPrinter(this);
posPrinter.open(“SPP-R200III”);
posPrinter.claim(5000);
posPrinter.setDeviceEnabled(true);
posPrinter.printBarCode(POSPrinterConst.PTR_S_RECEIPT,
“123456789”,
POSPrinterConst.PTR_BCS_QRCODE,
8,
8,
POSPrinterConst.PTR_BC_CENTER,
POSPrinterConst.PTR_BC_TEXT_BELOW);
}
catch(JposException e)
{
e.printStackTrace();
}
}
#End If