@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.abstract_activity); if (savedInstanceState == null) { mCurrentIntent = getIntent(); // fetchData(); showDiscoverFragment(); } }
@Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); mCurrentIntent = intent; fetchData(); }
@Override protected void onDestroy() { super.onDestroy(); ServerConnector.getInstance().cancelPendingRequests(TAG); }