Threads for Android | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Threads for Android

I heard in android there are two ways to do async tasks. one of these is the normal threads. But I'd like know what is the other way. thanks.

13th Jan 2017, 12:55 PM
Jairo Reyes
Jairo Reyes - avatar
1 Answer
0
The other way is something called Async Tasks. AsyncTask enables proper and easy use of the UI thread. This class allows you to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. android.os.AsyncTask<Params, Progress, Result>
13th Jan 2017, 12:58 PM
Jairo Reyes
Jairo Reyes - avatar