The Logcat tools let you trace events and variable values as you debug your app. In this video, discover how to use the Log class and see its output in Android Studio's Logcat window.
- [Instructor] Understanding the activity … life cycle is critical for Android developers. … Each time an activity changes its state … the framework calls a function of the activity class. … And you can react to these events by overriding … those functions. … Now you can follow along with these steps … in any Android project that uses Kotlin. … I'm using the appropriate branch for this video … from the GitHub Repo. … I'll place the cursor inside the on create … function and down here at the bottom of the code … I'll use the log class. … This class is from the Android dot util package … and it has to be imported in order to use it. … When I select it, the appropriate import is added up here. … In order to trace your events you can use any … of the functions that start with a single character. … Each of these characters represents one of these … messaging levels from assert to debug, error, … info, verbose, and warn. … And these give you a way of filtering your messages. … I'll use I for info and I'll need to pass …
Looking for study partners?Join the Associate Android Developer Exam study group
The Android app architecture constantly evolves. The introduction of the Kotlin programming language, new form factors such as Chromebooks, and reusable architecture components have made it faster and easier than ever to build high-quality Android apps. It is imperative that developers understand what the latest tools and recommendations are and how to use them to build out their applications. In this course, instructor David Gassner explains how to build an Android app that uses Kotlin instead of Java, add navigation functionality, and leverage the most useful architecture components such as LifecycleObserver, ViewModel, and LiveData, to create apps that are robust and easy to maintain over time.
- Handling lifecycle events
- Handling view events
- Updating display from new data
- Adding ViewModels to activities
- Subscribing to changes in LiveData values
- Adding a new launcher activity
- Starting activities with explicit intents
- Sharing data with implicit intents
- Adding a navigation drawer
- Adding a header to a navigation drawer
- Handling navigating drawer menu events