Anatomy of an Android App

Sep 10 2024 · Kotlin 1.9.23, Android 14, Android Studio Iguana

Lesson 04: Leverage Logcat

Demo

Episode complete

Play next episode

Next

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

In this demo, we’ll explore how to use Logcat in Android Studio to monitor and filter logs from multiple devices simultaneously. The setup includes using two physical devices mirrored through an app called Visor.

Setting Up the Environment

First, you’ll need to load your project in Android Studio. If you’re following along, ensure your two physical devices are connected and visible on your screen using the Visor app. We’ll build and run the app on both devices and monitor the logs using Logcat.

Clearing and Filtering Logs

Running the App and Viewing Logs

Viewing Logs Simultaneously

Demonstrating With the App

Handling Errors and Permissions

Advanced Logcat Configuration

Conclusion

This demo should give you a solid understanding of how to use Logcat effectively in Android Studio, particularly when working with multiple devices. Feel free to experiment with splitting panes and applying various filters to suit your specific needs.

See forum comments
Cinema mode Download course materials from Github
Previous: A Tour of Logcat Next: Conclusion