h_k
h_k

Reputation: 1714

Android Intent Chooser - populate list of apps by package names

I know that I can launch another app by knowing its package name by doing something like this:

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.example.yourapp");
startActivity(launchIntent);

However, I would like to open up a chooser with a list of apps that are known by their package names. These apps don't fall under the typical intent categories, like ACTION_SEND.

Is this possible?

Upvotes: 0

Views: 426

Answers (1)

Alex
Alex

Reputation: 972

I would refer you to this: Custom filtering of intent chooser based on installed Android package name.

Check the answer from pleonasmik.

Hope that helps!

Upvotes: 1

Related Questions