Skip to content

Episode 13: Android Notifications #11

@moreli

Description

@moreli

The code throws the following error:
startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK and essentially starts the app again. I'm trying to use the notification to get back from a background audio app, and it starts the app again, causing to have two audio streams play on top of each other.

Tried various configurations options, but the error remains. Any idea how to set it up to run in a single context?

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