Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

How to define the dynamic shortcuts for 2 main activities? #35

@cRuiTe

Description

@cRuiTe

in my app has multiple main activities.(use activity-alias to create 2 app icons on phone)
i want to define different dynamic shortcuts for each or specified.(default is only define for the app launcher activity)

the guidance in android homepage says: Only main activities—activities that handle the Intent.ACTION_MAIN action and the Intent.CATEGORY_LAUNCHER category—can have shortcuts. If an app has multiple main activities, you need to define the set of shortcuts for each activity.

but how?

Metadata

Metadata

Assignees

No one assigned

    Labels

    migrated googlesamplesIssue migrated from old repo location (googlesamples/)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions