コード例 #1
0
 @Override
 public void onDestroy() {
   if (!NetworkView.Instance().isInitialized() && NetworkInitializer.Instance != null) {
     NetworkInitializer.Instance.setActivity(null);
   }
   super.onDestroy();
 }
コード例 #2
0
 @Override
 public void onResume() {
   super.onResume();
   if (!NetworkView.Instance().isInitialized()) {
     if (NetworkInitializer.Instance == null) {
       new NetworkInitializer(this);
       NetworkInitializer.Instance.start();
     } else {
       NetworkInitializer.Instance.setActivity(this);
     }
   } else {
     prepareView();
     if (myIntent != null) {
       processIntent(myIntent);
       myIntent = null;
     }
   }
 }