예제 #1
0
 @Override
 public void onDestroy() {
   storeConfig();
   cleanupSocket();
   if (keyStoreManager != null) {
     keyStoreManager.store();
   }
   super.onDestroy();
 }
예제 #2
0
 private void addRecentlyConnected(RemoteDevice remoteDevice) {
   recentlyConnected.remove(remoteDevice.getAddress());
   recentlyConnected.put(remoteDevice.getAddress(), remoteDevice);
   storeConfig();
 }