在android中将自定义URI转换为对应用程序的EPUB调用

时间:2012-01-13 10:16:36

标签: android uri protocols epub

我在EPUB中有一个文本,在本文中有一个以“E2L://”开头的链接。当有人点击链接时,我想打开一个显示链接文本的应用程序。请有人帮帮我吗?

1 个答案:

答案 0 :(得分:0)

是的,你可以这样做:你应该在你的Manifest文件中注册如下:

<intent-filter>
<data android:scheme="anton" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <--Not positive if this one is needed
...
</intent-filter>

如需进一步参考,请查看Listen to Custom URIStart app from link