I am confused while trying to understand the Processes
and Threads
concepts in Android. Below I mention a few questions. Maybe those are stupid questions, but please help me answer to answer these questions and clarify my doubts.
1) If I create a thread where will it run? in Main(UI) Thread
?
2) If my created thread runs in the background as a worker Thread
then what is the use of AsyncTask
(I mean how it is better than thread)?
3)Can we create a Thread in AsyncTask?