Is there any way to get list of all games installed in an android device programmatically using java?
Thanks in advance.
Is there any way to get list of all games installed in an android device programmatically using java?
Thanks in advance.
Try this code
final PackageManager pm = getPackageManager();
//get a list of installed apps.
List<ApplicationInfo> packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);
for (ApplicationInfo packageInfo : packages) {
Log.d(TAG, "Installed package :" + packageInfo.packageName);
Log.d(TAG, "Source dir : " + packageInfo.sourceDir);
Log.d(TAG, "Launch Activity :" + pm.getLaunchIntentForPackage(packageInfo.packageName));
}
Hit the url
https://play.google.com/store/apps/details?id=your.package.name
From the source you will get something like
<span itemprop="genre">Shopping</span>
Or you can use marketer-api.