I am working in an application where I am fetch all the application installed my device using this code :
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory("com.myapp.MY_CATEGORY");
final List<ResolveInfo> pkgAppsList =getPackageManager().queryIntentActivities( mainIntent, 0);
Now I want to categories the apps differently According to their Categories. Please Suggest me.
To know the category of an application you need to get the data from google play. you can check android-market-api. it is a third party api. according to their info
- You can browse market with any carrier or locale you want.
- Search for apps using keywords or package name.
- Retrieve an app info using an app ID.
- Retrieve comments using an app ID.
- Get PNG screenshots and icon
So you better check if you can parse the category info using this api.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With