Android Program Crash exception handling

Source: Internet
Author: User

In writing the program, will certainly encounter a variety of problems, in solving these problems must be to see the console printing exception information, according to the control desk printing abnormal information to be targeted to solve.

Then to solve the problem of the program running on the user's phone crashes, you must find the cause of the problem. It is therefore necessary to collect crash information, which is log logs.

What we can do when the Android program crash:
1, the crash information is stored locally, and then uploaded to the server, according to the abnormal information uploaded to the targeted processing;
2, the system comes with the crash interface is very unfriendly, we can customize the program crash after the interface, do the friendly point;

About the above 2 operating methods, their own views:
1, the application of the integration of the Friends of the league Statistical SDK, has done the error statistics function, can be in the Friends of the control console straightforward to see the error message, of course, can also handle their own.
2, in fact, the focus of attention here is, after the program crash, how to let it disappear in a more friendly way or restart the application

Find two good blog, collected here:
1, the Android program crash when the exception report
2, Android rewrite system crash processing class, save crash information to SD card and perfect Exit program method
3, Android crash processing

Android Program Crash exception handling

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.