我目前正在做一个自定义方案意图过滤器来从浏览器打开我自己的应用程序。
是否可以改为打开活动来启动广播接收器。
我当前的活动广播接收器代码是这样的:
<action android:name="android.intent.action.VIEW" >
</action>
<category android:name="android.intent.category.DEFAULT" >
</category>
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="shortener.com"
android:scheme="shortener" >
</data>
</intent-filter>
这是我的接收器代码。不触发。尝试了查看操作和自定义操作
<receiver android:name="MyReceiver" >
<intent-filter>
<action android:name="com.dg.action.CONFIGURE" >
</action>
<category android:name="android.intent.category.DEFAULT" >
</category>
<data
android:host="shortener.com"
android:scheme="shortener" >
</data>
</intent-filter>
</receiver>