Search code examples
androiduriprotocolsepub

In android a custom URI into a EPUB call to an app


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?


Solution

  • 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