Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How i get the All Android Application categories name?

I have an android application that works like restriction of some Apps categories like game. so if i stop all game apps in my android device then how its possible. how i get this app is game OR weather OR Medical etc.

Any ideas....

like image 733
Jack Patoliya Avatar asked Dec 21 '11 08:12

Jack Patoliya


1 Answers

Application categories correspond to a classification in Android Market, but not something you can check on the application itself. What you can do is to query the Android Market for information of a specific application.

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

Then query Android Market about the package name you just got. Here's a non-official API http://code.google.com/p/android-market-api/

Hope it helps.

like image 102
gimix Avatar answered Sep 21 '22 12:09

gimix