Log status in Android is very important, if as an Android programmer can not analyze log this, is not an introduction to Android. Now let's talk about how to handle the log file.
When will a log file be generated? A log file is typically generated in the following situations.
1, program abnormal exit, uncaused exception
2, program forced shutdown, Force Closed (FC)
3, the program is not responding, application no Response (ANR), the general main thread more than 5 seconds, there is processing will be ANR
4, manually generated.
We use natural language to describe the log, which is a kind of ability.
01-15 16:49:02.433 E/activitymanager (2466): ANR in Com.android.mms (Com.android.mms/.ui. slideshowactivity)
Translation: at 16:49 minutes, 2 seconds, 433 milliseconds, the following error occurred Activitymanager (process number 2466): Com.android.mms package. Ui.slideshowactivity is not responding.
01-15 16:49:02.433 E/activitymanager (2466): Reason:keydispatchingtimedout
Translation: Reason, keydispatchingtimeout-key assignment timeout
01-15 16:49:02.433 E/activitymanager (2466): load:0.6/0.61/0.42
Translation: 5 minutes, 10 minutes, the average load in 15 minutes is: 0.6, 0.61, 0.42
Here we probably know what the problem is, combined with our previous operating procedures, we know that the problem is that the button event may not be processed at some point when the button is clicked, causing the timeout to be unresponsive.
Analysis, viewing of the Android log log file