예제 #1
0
 public AsyncTask.Status getRetrieveAchievementsTaskStatus() {
   if (retrieveAchievementsTask != null) {
     return retrieveAchievementsTask.getStatus();
   } else if (retrieveAchievementsTaskRunning == true) {
     return AsyncTask.Status.RUNNING;
   } else if (retrieveAchievementsTaskRunning == false) {
     return AsyncTask.Status.PENDING;
   }
   return AsyncTask.Status.FINISHED;
 }
예제 #2
0
 public void executeRetrieveAchievementsTask() {
   RetrieveAchievementsTask task = new RetrieveAchievementsTask();
   task.execute();
 }
예제 #3
0
 public void cancelRetrieveAchievementsTask() {
   if (retrieveAchievementsTask != null) {
     retrieveAchievementsTask.cancel(true);
   }
   retrieveAchievementsTaskRunning = false;
 }