Analysis, viewing of the Android log log file

Source: Internet
Author: User
Tags log log

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

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.