Android Developer Question:
Download Job Interview Questions and Answers PDF
Do you know what is ANR, and why does it happen?
Answer:
‘ANR’ in Android is ‘Application Not Responding.’ It means when the user is interacting with the activity, and the activity is in the onResume() method, a dialog appears displaying “application not responding.”
It happens because we start a heavy and long running task like downloading data in the main UI thread. The solution of the problem is to start your heavy tasks in the backbround using Async Task class.
It happens because we start a heavy and long running task like downloading data in the main UI thread. The solution of the problem is to start your heavy tasks in the backbround using Async Task class.
Download Android Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know what are Handlers? | What is difference between Activity & Service? |