示例#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;
 }