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