如何将用户重定向到市场中的开发者页面?

dim*_*til 5 android google-play

我使用此代码将用户重定向到Market中的特定应用:

Uri marketUri = Uri.parse("market://details?id=" + packageName);
Intent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);
startActivity(marketIntent);
Run Code Online (Sandbox Code Playgroud)

如何将用户重定向到市场中的开发人员页面?
我尝试从浏览器复制链接到Uri

Uri marketUri = Uri.parse("market://developer?id=Developer+Name");
Run Code Online (Sandbox Code Playgroud)

实名已被更改
这会导致致命异常

E/AndroidRuntime(29775): android.content.ActivityNotFoundException: No Activity found to handle Intent
Run Code Online (Sandbox Code Playgroud)

我可以用

Uri marketUri = Uri.parse("https://play.google.com/store/apps/developer?id=Developer+Name");
Run Code Online (Sandbox Code Playgroud)

但出现应用程序选择对话框(播放市场或浏览器).我想默认使用市场.

谢谢.

Inc*_*App 6

正确的查询是:

 market://search?q=pub:\"IncrediApp\"
Run Code Online (Sandbox Code Playgroud)

关于你的错误:

这会导致致命异常

这是因为您可能是在模拟器或未安装Google Play应用的设备上运行它.

但出现应用程序选择对话框(播放市场或浏览器).我想默认使用市场.

如果您使用market://前缀,则它将是默认值.对于https://play.google.com,它根据用户的设置工作,并询问用户是否未定义默认值.