【发布时间】:2014-03-06 08:54:20
【问题描述】:
我在应用程序 com.example.one 中创建了一个活动,该活动调用了应用程序 com.example.two 中的另一个活动。 在活动两个清单中,我声明了以下意图过滤器
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
</intent-filter>
但是,使用操作调用此活动 - Intent.ACTION_VIEW 甚至使用 android.intent.action.VIEW 直接调用浏览器,而不是我放置的 Intent 选择器。
Intent ii=new Intent(Intent.ACTION_VIEW);
ii.setData(Uri.parse("http://www.google.com"));
startActivity(Intent.createChooser(ii,"done"));
请更新为什么我没有获得浏览器和我的活动的意图选择器。 谢谢
【问题讨论】:
标签: android