How to view logcat in Android

Source: Internet
Author: User

I checked it and found that ADB logcat can be used on the Internet, but I didn't figure it out.

After checking the relevant information, eclipse can switch to debug to try. The view has a logcat box. Double-click to enlarge the display and export it as text!

Then you can view the relevant information:

Paste my logcat analysis:

11-24 17:00:20. 086: E/androidruntime (293): Fatal exception: Main
11-24 17:00:20. 086: E/androidruntime (293): Java. Lang. nullpointerexception
11-24 17:00:20. 086: E/androidruntime (293): at Android. content. contextwrapper. getresources (contextwrapper. Java: 80)
11-24 17:00:20. 086: E/androidruntime (293): At com. example. Android. APIs. App. setmywallpaper. getmywall (setmywallpaper. Java: 16)
11-24 17:00:20. 086: E/androidruntime (293): At com. example. Android. APIs. App. setwallpaperactivity $3. onclick (setwallpaperactivity. Java: 96)
11-24 17:00:20. 086: E/androidruntime (293): at Android. View. View. javasmclick (view. Java: 2408)
11-24 17:00:20. 086: E/androidruntime (293): at Android. View. View $ export mclick. Run (view. Java: 8816)
11-24 17:00:20. 086: E/androidruntime (293): at Android. OS. handler. handlecallback (handler. Java: 587)
11-24 17:00:20. 086: E/androidruntime (293): at Android. OS. handler. dispatchmessage (handler. Java: 92)
11-24 17:00:20. 086: E/androidruntime (293): at Android. OS. logoff. Loop (logoff. Java: 123)
11-24 17:00:20. 086: E/androidruntime (293): at Android. App. activitythread. Main (activitythread. Java: 4627)
11-24 17:00:20. 086: E/androidruntime (293): At java. Lang. Reflect. method. invokenative (native method)
11-24 17:00:20. 086: E/androidruntime (293): At java. Lang. Reflect. method. Invoke (method. Java: 521)
11-24 17:00:20. 086: E/androidruntime (293): At com. Android. Internal. OS. zygoteinit $ methodandargscaller. Run (zygoteinit. Java: 868)
11-24 17:00:20. 086: E/androidruntime (293): At com. Android. Internal. OS. zygoteinit. Main (zygoteinit. Java: 626)
11-24 17:00:20. 086: E/androidruntime (293): At Dalvik. system. nativestart. Main (native method)

Wait for the answers!

Related Article

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.