Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the category of any app programmatically in Android?

Tags:

android

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.

like image 221
Sam-In-TechValens Avatar asked Nov 02 '22 21:11

Sam-In-TechValens


1 Answers

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.

like image 157
stinepike Avatar answered Nov 14 '22 22:11

stinepike