I am currently developing an android app, there is always unexpected exception popup when I use AsyncTask or Thread. any one tell me what’s the difference between them and how to use them ?
I am currently developing an android app, there is always unexpected exception popup when
Share
It depends on how to use them, and your code inside it. Mostly when you are using Main UI Thread in this (other) thread or asynctask in-properly.
For difference between AsyncTask and Thread you have to search on SO and net. You can find easily it.
Anyway I recommended you to just go through this blog Android Thread Constructs(Part 4): Comparisons
And this SO question Difference between Service, Async Task & Thread?