Difference between FutureTask and AsyncTask in android -
I know the difference between I have asked a Question but no answer met. Now I think I should change the way my domain web server obtains data. So I think I should use the and cancel Please do not allow me to recover data from some web-services. Guides the way. Because the adapter of my text view is very slow. Or just need to cancel the incompatible task I run or replace with it when the user calls provides callback ( Provides no callback and does not know anything about the Android UI thread In fact, the Android application should not call For typical Android app development, FutureTask and
AsyncTask in Android Want to According to my thinking we can get current status in Futuratsk. Using the
Executable Service we can create a pool of parallel processes. I can get the same property using AsyncTask when I want to use the Ascend Task and the use of FutureTasks
FutureTask because they have the work IDone ()
w for AsyncTask and when it is in AutoTextview Words will call it three times for
waka and
wak and
waka for one Is it possible to cancel the running work when users will press another text? See my
onPreExecute ,
onProgressExecute , And
onPostExecute ) are guaranteed to run on the UI thread.
Future.get () from the UI formula, Because it can be blocks.
AsyncTask .
Comments
Post a Comment