Skip to content

Stages of the Activity Lifecycle: Android Basics with Compose #19

Open
@mmhmjanssen

Description

@mmhmjanssen

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-activity-lifecycle

In which task and step of the codelab can this issue be found?
Explore the lifecycle methods and add basic logging

Describe the problem
At first I thought there was a problem in logcat because logcat displayed a lot of unexpected message when I applied the proposed filter "tag:MainActivity".
The reason turned out to be that (a lot of) other messages contain the text "MainActivity". After I changed the tag in my code to "MyMainActivity" I only got the messages that I was supposed to get.

Steps to reproduce?
See description of problem and course step.
Run the app on a physical device (not the emulator). I ran the app on a Samsung Galaxy Tab 7 FE.

Versions
Android Studio version:
Android Studio Flamingo | 2022.2.1 Patch 2
Build #AI-222.4459.24.2221.10121639, built on May 12, 2023

API version of the emulator:
Not used

Additional information
Include screenshots if they would be useful in clarifying the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions