@Override protected void onResume() { super.onResume(); gamePlayStrategyActivity = this; pollsPref.ActivityRunning(true); if (Utility.isNetworkAvailable(GamePlayStrategyActivity.this)) { new GetPollData().execute(); } else { // do nothing } }
@Override protected void onPause() { super.onPause(); pollsPref.ActivityRunning(false); }