我可以从手机的web浏览器发送意图广播吗? Android中感兴趣的广播接收器(本机应用程序)可以接收到这个意图广播吗?
在HTML中使用:
<a href="intent://my_host#Intent;scheme=my_scheme;action=my_action;end">Link to my stuff</a>
然后把这些放在清单中:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="my_scheme" android:host="my_host" />
</intent-filter>