Button btnPrint=(Button)findViewById(R.id.btnPrint); btnPrint.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Thread t = new Thread() { public void run() { try { OutputStream os = mBluetoothSocket .getOutputStream(); BILL = "ENGLISH" + "\n"; BILL = BILL + "العربية" + "\n"; BILL = BILL + "---------------" + "\n"; os.write(BILL.getBytes( )); } catch (Exception e) { } } }; t.start(); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)