Example #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;
 }
Example #2
0
 public void executeRetrieveAchievementsTask() {
   RetrieveAchievementsTask task = new RetrieveAchievementsTask();
   task.execute();
 }
Example #3
0
 public void cancelRetrieveAchievementsTask() {
   if (retrieveAchievementsTask != null) {
     retrieveAchievementsTask.cancel(true);
   }
   retrieveAchievementsTaskRunning = false;
 }