title: Difference between FutureTask and AsyncTask in android
body: <p>I want to know the difference between <code>FutureTask</code> and <code>AsyncTask</code> in android. According to my thinking we can get the current situation in FutureTask. Using <code>ExecutorService</code> we can create a pool of parallel processes. Same property we can achieve using AsyncTask . I want to know the situation where to use AsyncTask and when to use FutureTask. </p>
  
  <p>I have asked a <strong>Question</strong> <a href="https://stackoverflow.com/questions/24951034/asynctask-doesnt-call-on-applying-space-to-a-url?noredirect=1#comment38780986_24951034">here</a> but not getting any response . Now i think i should change my way of getting webservices data. So i think i should use <code>FutureTask</code> because they have function like isDone()</p>
  
  <p>and cancel. Please some one guide me any better way to retrieve data from web-services. because my textView set's the adapter too slow.</p>
  
  <p>Or simply i need a way to cancel the running AsyncTasks or replace it with the current. When user press <code>w</code> it call for the AsyncTask and when he added any word to it in AutotextView it will call thrice for <code>waka</code> one for <code>wa</code> and <code>wak</code> and one for <code>waka</code> . Is it possible to cancel the running task when user presses another text.  See my <a href="https://stackoverflow.com/questions/24951034/asynctask-doesnt-call-on-applying-space-to-a-url"><strong>Question here for Details</strong></a>.</p>