コード例 #1
0
 private void getActiveUsers() {
   if (Utility.isNetworkAvailable(this)) {
     new GetActiveUsers().execute();
   } else {
     SnackNotify.showSnakeBar(this, snakeOnClick, coordinatorLayout);
   }
 }
コード例 #2
0
  @Override
  protected void onResume() {
    super.onResume();

    gamePlayStrategyActivity = this;

    pollsPref.ActivityRunning(true);

    if (Utility.isNetworkAvailable(GamePlayStrategyActivity.this)) {
      new GetPollData().execute();
    } else {
      // do nothing
    }
  }