ANR exception, anr

Source: Internet
Author: User

ANR exception, anr

This morning, ANR encountered another new situation.


The application not response application is not responded to when the Android library is not loaded successfully.

Conclusion: The cause of ANR exceptions is as follows:

1-> the cycle time of the main thread is more than 5 s,

2-> it takes more than 10 seconds to process the broadcast receiving function.

3-> database read/write time

4-> deadlock

5-> the time-consuming operation of the sub-thread crashes, and the main thread waits for resources,

6-> Android hardware resources loading (exclusive resources, such as camera) Time-out

7-> Android library loading times out (I have missed the so library this time)

For the interview partner, the full name of ANR is also the best to remember. I was asked, sorry.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.