ozbilgic
ozbilgic

Reputation: 81

Games and programs installed on the device how can I separate lists

Using the following code retrieves the list of applications.

Intent mIntent = new Intent(Intent.ACTION_MAIN, null);
mIntent.addCategory(Intent.CATEGORY_LAUNCHER);

List<ResolveInfo> appList = getPackageManager().queryIntentActivities(mIntent, 0);

From this list of games and programs you want to reserve. How can I do this?

Upvotes: 1

Views: 45

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007369

There is nothing in the Android SDK that supports such categorizations.

The category system depends upon the distribution channel -- the Play Store does not use the same set of categories as does the Amazon AppStore for Android. The categories also change over time. Some distribution channels, like directly downloading an APK from a Web site, have no categories at all. None of this has anything to do with the Android OS, which is why you will not be able to get this information from the OS.

Also, there will be many apps on the device that will not be associated with any distribution channel (e.g., pre-installed apps).

Upvotes: 2

Related Questions