我想对应用程序进行分类。 当一个应用程序出现在前台时,我应该能够检测到这个应用程序有视频、音频、纯文本或 3D 图形。
我尝试使用 2 个选项对它们进行分类:
- 获取应用中使用的权限,但无法获取第三方应用的权限(仅限 native 应用),您是否真的无法获取第三方应用的权限?还是我错过了什么?
- 根据 mimeType 挑选出所有已安装的应用程序,但我只得到 native 应用程序,或者某些应用程序(应用程序的 Intent )没有指定 mimeType(我不确定)。
有没有其他方法可以对已安装的应用程序进行分类?如果有人可以帮助我解决这个问题,我将不胜感激?
非常感谢
最佳答案
使用 WhereDat应用程序接口(interface):
创建原始 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..."
}
]
}
关于android - 分类应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3564941/