【发布时间】:2012-06-10 23:21:34
【问题描述】:
我的最新应用中有其他应用的链接,我以这种方式打开它们。
Uri uri = Uri.parse("url");
Intent intent = new Intent (Intent.ACTION_VIEW, uri);
startActivity(intent);
此代码将打开 google play store 的浏览器版本。
当我尝试从我的手机打开时,手机会提示我是要使用浏览器还是 google play,如果我选择第二个,它会打开手机版的 google play store。
你能告诉我这怎么会立即发生?我的意思是不问我,直接打开手机版的google play,就是我手机直接打开看到的那个。
【问题讨论】:
-
我希望倒数第二段对我来说是正确的。使用此处找到的 http 链接:developer.android.com/distribute/googleplay/promote/… 不会提示用户选择应用程序或浏览器。它总是假定浏览器。不幸的是,我也不能使用
market://协议。还有其他人看到这种行为吗?
标签: android google-play