Exemplo n.º 1
0
 /**
  * Register a resultReceiver with this server, that will get notification when a change happens
  * with the connection to the core Like when the connection is lost.
  *
  * @param resultReceiver - Receiver that will get the status updates
  */
 public void registerStatusReceiver(ResultReceiver resultReceiver) {
   statusReceivers.add(resultReceiver);
   if (coreConn != null && coreConn.isConnected()) {
     resultReceiver.send(CoreConnService.CONNECTION_CONNECTED, null);
   } else {
     resultReceiver.send(CoreConnService.CONNECTION_DISCONNECTED, null);
   }
 }
Exemplo n.º 2
0
 public boolean isConnected() {
   return coreConn.isConnected();
 }