When I was reading some posts here I noticed that android main thread is ui thread and that any long operation should be on another thread by its own
So I was wondering, if would it be a good design habit to always create two threads(at least) at for any Android app? One would be the UI thread that is used for updating UI and the other thread for any other thing
Or should I just stick with one thread and spawn a thread only when I need to (Long operation)
Thank u
It is heavily depend on your application. In simple words If user feel any lag in application, then your probably need to move your work in another thread.
AsyncTaskmake it really easy to work with thread.