对应用程序进行分类

时间:2010-08-25 10:33:04

标签: android categories

我想对申请进行分类。 当一个应用程序到达前台时,我应该能够检测到这个应用程序有视频,音频,文本或3D图形。

我尝试使用2个选项对它们进行分类:

  1. 要获取应用中使用的权限,但无法获得第三方应用(仅限本机应用)的权限,您是否无法获得第三方应用的权限?或者我错过了什么?
  2. 根据mimeType选择所有已安装的应用,但我只获得原生应用,或者某些应用(应用的意图)没有指定mimeType(我不确定)。
  3. 有没有其他方法可以对已安装的应用程序进行分类?如果有人可以帮我解决这个问题,我真的很感激吗?

    非常感谢

1 个答案:

答案 0 :(得分:0)

使用WhereDat API:

创建原始 JSON POST请求,其中包含您要分类的数据包数组:

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

发送至:

http://api.wheredatapp.com/data

以下是回复:

{
"apps": [
    {
        "category": "Productivity",
        "rating": 4.5,
        "updated": 1436741473,
        "created": 1431028391,
        "icon_url": "https://lh3.googleusercontent.com/q5pFGfXKZejowwcmlJl7M1IXGHVM4Zq_IjPpYb7zgkUFXO3QnZ2LyeOUUhMPaKPkJ3gR=w300",
        "title": "WhereDat Beta",
        "package": "com.nextstagesearch",
        "ratings_count": 4,
        "short_description": "WhereDat lets you easily search your device for contacts, apps, and recently accessed webpages without leaving your home screen. With deep linking you can search the c..."
    },
    {
        "category": "Photography",
        "rating": 4.0519609451293945,
        "updated": 1435970764,
        "created": 1430868349,
        "icon_url": "https://lh3.ggpht.com/NgbwQzyo2mDR8su1Embio5jtHuPyScaMr0j4iub58YR5m19Ns0gVdeb9pYgNvMuFCcg=w300",
        "title": "PixMix - Photo sharing",
        "package": "com.pixmix.mobileapp",
        "ratings_count": 2040,
        "short_description": "Simple collage or photo sharing in just two clicks!★ See your photos in BEAUTIFUL albums★ Create beautiful album COLLAGE★ EASILY send albums to friends and family★ You..."
    }
]
}