Esempio n. 1
0
 // BluetoothPortListener
 public void onBluetoothPortConnected(boolean success) {
   if (success) {
     fireCreateSessionCallback(BT_OK, mPort.getConnectedDeviceName());
   } else {
     fireCreateSessionCallback(BT_ERROR, mPort.getConnectedDeviceName());
   }
   closeBluetoothScreenSilent();
 }
Esempio n. 2
0
 // BluetoothPortListener
 public void onBluetoothPortError() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_ERROR);
 }
Esempio n. 3
0
 // BluetoothPortListener
 public void onBluetoothPortDataReceived() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_SESSION_INPUT_DATA_RECEIVED);
 }
Esempio n. 4
0
 // BluetoothPortListener
 public void onBluetoothPortDisconnect() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_SESSION_DISCONNECT);
 }