我在EPUB中有一个文本,在本文中有一个以“E2L://”开头的链接。当有人点击链接时,我想打开一个显示链接文本的应用程序。请有人帮帮我吗?
答案 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 URI 和 Start app from link