I’m wondering what is the best practice about initiation of new threads in Android or that is just a matter of taste. Shall I start threads for time consuming operations directly from the Activity or I need to delegate this to a separate class?
I’m wondering what is the best practice about initiation of new threads in Android
Share
AndroidNoob,
Here is a good article on this from the Android Developers Blog: http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html
It looks like they create a new class for the
AsyncTaskand launch it from their UI Activity.Hope this helps, good luck!