0 votes
in JQuery by
What is an AsyncTask in Andorid?

1 Answer

0 votes
by

AsyncTask is one of the easiest ways to implement parallelism in Android without having to deal with more complex methods like Threads. Though it offers a basic level of parallelism with the UI thread, it should not be used for longer operations (of, say, not more than 2 seconds).

AsyncTask has four methods

  • onPreExecute()
  • doInBackground()
  • onProgressUpdate()
  • onPostExecute()

where doInBackground() is the most important as it is where background computations are performed.

Related questions

0 votes
asked Sep 21, 2020 in JQuery by JackTerrance
+1 vote
0 votes
asked Jun 23, 2020 in JQuery by AdilsonLima
...