0

I have a text in EPUB, in this text there's a link that starts "E2L://".When somebody clicks in the link, I want to open an app that shows the link text. Can anybody help me please?

Migua
  • 575
  • 1
  • 10
  • 17
  • If I could register my own protocol (E2L://) in android OS, that would solve the problem, because all app could understand it, couldn't it? is it possible? – Migua Jan 13 '12 at 10:41

1 Answers1

0

Yeah you can do it : You should register in your Manifest file like below :

<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>

For further reference check this Listen to Custom URI and Start app from link

Community
  • 1
  • 1
Venky
  • 11,049
  • 5
  • 49
  • 66
  • in the manifest of de app that I want to open with the link (E2L://) in the EPUB? – Migua Jan 13 '12 at 12:10
  • Need to specify you schema in my case i gave as anton , in you case give your schema , i think E2L is your Schema – Venky Jan 13 '12 at 12:25
  • I think , I've accepted it.. I linked: Was this post useful to you? "Yes". I tried to vote you up, but I haven't enough reputation to vote. Is there anything else I can do ? – Migua Jan 13 '12 at 13:17
  • I've tried this and it worked! :) but how can I pass and receive parameters? thank you! – Migua Jan 16 '12 at 12:44