Exemplo n.º 1
0
 // BluetoothPortListener
 public void onBluetoothPortConnected(boolean success) {
   if (success) {
     fireCreateSessionCallback(BT_OK, mPort.getConnectedDeviceName());
   } else {
     fireCreateSessionCallback(BT_ERROR, mPort.getConnectedDeviceName());
   }
   closeBluetoothScreenSilent();
 }
Exemplo n.º 2
0
 // BluetoothScreenCallback
 public void onBluetoothScreenCancel() {
   rhoLogInfo("onBluetoothScreenCancel()");
   if (mPort != null) {
     mPort.disconnect();
     mPort = null;
   }
   fireCreateSessionCallback(BT_CANCEL, "");
   mScreen = null;
 }
Exemplo n.º 3
0
 // BluetoothPortListener
 public void onBluetoothPortDataReceived() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_SESSION_INPUT_DATA_RECEIVED);
 }
Exemplo n.º 4
0
 // BluetoothPortListener
 public void onBluetoothPortError() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_ERROR);
 }
Exemplo n.º 5
0
 // BluetoothPortListener
 public void onBluetoothPortDisconnect() {
   fireSessionCallback(mPort.getConnectedDeviceName(), BT_SESSION_DISCONNECT);
 }