private void POS_connect() { if (!VMF.isVx600Connected() || !VMF.isBTPrinterConnected()) { new Thread(new Runnable() { public void run() { if (!VMF.isVx600Connected()) { System.out.println("status ===" + VMF.vmfConnectVx600(Login.this, new Vx600ConnectionListener(), 1)); } } }).start(); } } loginrequest public void sendloginreq() { Global_variable.TxnCode = "22"; if (VMF.isVx600Connected()) { String command = "L" + "," + Global_variable.TxnCode + "," + Global_variable.Ttid + "," + Global_functions.Get_datetime(4); System.out.println("login POS request pkt === " + command); int retValue = VMF.vmfAppLinkSend(128, command.getBytes(), 100000); } else { Toast.makeText(getApplicationContext(), "Device not connected", Toast.LENGTH_SHORT).show(); } Progressbar(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)