What is ANR (application not responding)? What is the reason for this probl em and what is the solution for that problem?

Answer: ANR - will occur if we are doing any other heavy functionality along with UI in single Main Thread. If two heavy functionalities happen in single thread, it will delay response to user actions, which may irritate user, and hence stop your process.

Solution - Run only UI components in Main Thread.

No comments:

Post a Comment