在我的应用中,我希望允许用户打开 Google Play 商店以查看我的所有其他应用。在 iOS 中,我只使用以下(示例)iTunes 链接将它们全部拉出:
https://itunes.apple.com/us/artist/electronic-arts/id284800461?mt=8
有没有办法显示我的所有应用(除了搜索我的公司名称,这是相当通用的)?
最佳答案
搜索产品,包括 pub:
标签,可以在标题为 Linking to your products 的 API 页面上找到。 .请注意,通过 URL 搜索需要不同的方法。两者都包含在这里。开始这样的 Intent :
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pub:Developer+Name+Here")));
} catch (android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/developer?id=Developer+Name+Here")));
}
请注意,市场在模拟器上不起作用,因此此代码将改为在 URL 中提取它。此方法由 this answer 提供.
关于android - 有没有办法链接到开发者的所有 Google Play 商店应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13630868/