从我的应用程序打开Goog​​le Play以列出我的所有应用:Android

时间:2013-12-25 11:55:54

标签: android android-intent

我知道如何使用应用程序包名称直接从我的应用程序打开Goog​​le Play商店。但是,我想列出我在Play商店中提供的所有应用程序。我搜索了很多相同但我没有找到解决问题的方法。

要打开特定应用程序,我们需要将包名称传递给Intent。所以我认为我们必须通过开发者ID列出所有应用程序。请帮我在Google Play上显示我的应用程序。非常感谢您的帮助。

3 个答案:

答案 0 :(得分:1)

使用浏览器导航到您的游戏帐户:f.e

https://play.google.com/store/apps/developer?id=XY

并以意图打开此网址:

Uri uri = Uri.parse("https://play.google.com/store/apps/developer?id=XY");
                startActivity(new Intent(Intent.ACTION_VIEW, uri));

答案 1 :(得分:1)

    String url = "http://play.google.com/store/apps/details?id=com.example.my_app";
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setData(Uri.parse(url));
    startActivity(i); 

Play商店将在浏览器中打开,但用户仍然无法下载和安装,因为他/她的设备在其可安装的播放商店设备列表中不会显示为有效(请记住,Play商店的浏览器版本永远不会下载,而只是通过云安装将其发送到各种设备)。如果没有安装Play商店,您唯一的选择就是为他们提供侧载的下载链接。

答案 2 :(得分:1)

这是合适的

final String dev_name= "DEVELOPER NAME";
                try {
                    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q="+dev_name)));
                } catch (android.content.ActivityNotFoundException anfe) {
                    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/developer?id="+dev_name)));
            }