How to get the name of the category "All Android applications"?

I have an Android application that works as a limitation of certain categories of applications, such as a game. therefore, if I stop all gaming applications on my Android device, then how is this possible. how do i get this app is a game OR weather OR medicine etc.

Any ideas ....

+6
source share
2 answers

Categories of applications correspond to the classification in the Android Market, but not something that you can check on the application itself. What you can do is request the Android Market for information about a specific application.

Android Market identifies applications by package name. So get ApplicationInfo for the package you want to request (check the PackageManager documentation) and use ApplicationInfo.packageName .

Then ask the Android Market for the name of the package you just received. Here's the unofficial API http://code.google.com/p/android-market-api/

Hope this helps.

+4
source

Create a raw JSON POST request with an array of packages that you want to classify:

 { "packages": [ "com.pixmix.mobileapp", "snooze.ninja" ] } 

Send it to:

http://api.wheredatapp.com/data

And here is the answer:

 { "apps": [ { "category": "Photography", "created": 1430868349, "package": "com.pixmix.mobileapp" }, { "category": "Productivity", "created": 1427510152, "package": "snooze.ninja" } ] } 
+3
source

Source: https://habr.com/ru/post/904221/


All Articles