Mobile Apps Developer Question:
Download Job Interview Questions and Answers PDF
Do you know how To Avoid An Anr?
Answer:
A follow-up to the previous question, there are a number of possible answers here. What you want to hear is that you want as little work done as possible on the main thread, also known as the "UI thread".
Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker threads so as not to slow down the main thread.
Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker threads so as not to slow down the main thread.
Download Mobile Apps Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know when An App Is Said To Be In Not Running State? | What is AVD? |