@Override public void onDestroy() { if (!NetworkView.Instance().isInitialized() && NetworkInitializer.Instance != null) { NetworkInitializer.Instance.setActivity(null); } super.onDestroy(); }
@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; } } }