I want to know the difference between FutureTaskand AsyncTaskin android. In my opinion, we can get the current situation in FutureTask. Using ExecutorService, we can create a pool of parallel processes. The same property that we can achieve with AsyncTask. I want to know where to use AsyncTask and when to use FutureTask.
I asked a question here , but did not receive an answer. Now I think I should change my way of getting webservices data. So I think I should use FutureTaskit because they have a function like isDone ()
and cancel. Please, one of them will help me get the best way to get data from web services. because my textView is installing the adapter too slowly.
Or I just need a way to cancel running AsyncTasks or replace it with the current one. When the user clicks w, he called for AsyncTask, and he adds to it some word in AutotextView, it will call three times for wakaone to waand wakand one for waka. Is it possible to cancel the current task when the user clicks another text. See my question here for details .
source
share