Logcat allows you to send messages to your development environment from outside entities like emulators or mobile devices. It's a powerful debugging tool used by many Android developers. Once you're connected to an emulator or device, you can filter messages right inside the core Android window. In this online video, learn about filtering Logcat messages and how to use the wide variety of Logcat tools, including inspecting memory and other important processes.
…LogCat is one of the most important debugging tools for Android developers.…It lets you send messages from an emulator…or a physical device, to your development environment.…It's like tracing code in other application environments.…Android Studio has a new implementation of the LogCat view.…You can still use the version that was used in Eclipse.…If you prefer that, you can open that external…tool by going to Tools > Android > Monitor.…But for most uses, if all you want to do is look…at your LogCat information, you'll find what you need in the Android window.…
First you need to make sure that…you've connected an emulator or a physical device.…For this demonstration, I'm using an emulator that's based on a Nexus four.…And I'm going to add some custom messages from my…Apps activity, and send those messages as the App is running.…You can follow along in any Android App for this demonstration.…First, I'll add a call to the log class in the on create method.…I'll type the name of the class, and make…sure I select the class that's a member of Android.util.…
Note: This course was revised on 8/20/2014 to reflect changes in the .0.8.4 beta version of Android Studio.
- Exploring Android Studio and IntelliJ IDEA
- Installing Android Studio
- Creating projects with Android Studio
- Navigating the user interface
- Designing activity layouts
- Analyzing and refactoring code
- Debugging and packaging apps
Skill Level Beginner
Q: This course was updated on 8/20/2014. What changed?
A: We revised this course to reflect changes to the Android Studio beta, released at the 2014 Google I/O conference. This update was recorded with Android Studio .0.8.4, which contains a new project wizard and updates to the Gradle build system. For more information about the changes in this course, check out the "What's new in this update" movie.