Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
Exceptions and Stack Traces
Expand the Logcat tool window so that you can see what has happened.
If you scroll up and down in Logcat, you should find an expanse of red, as shown in Figure 5.2.
This is a standard AndroidRuntime exception report.
If you do not see much in Logcat and cannot find the exception, you may need to select the Show only selected application or No Filters option in the filter dropdown. On the other hand, if you see too much in Logcat, you can adjust the log level from Verbose to Error, which will show only the most severe log messages. You can also search for the text fatal exception, which will bring you straight to the exception that caused the app to crash.
Figure 5.2 Exception and stack trace in Logcat ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access