Search code examples
androidpdfandroid-intentintentfiltercustom-url

Open Android App with custom URL from PDF file


I wish to let my Andorid App handle custom URLs like shown in this question:How to implement own URI scheme.

<activity android:name="MyActivity"
        android:configChanges="screenSize"
        android:screenOrientation="portrait">
        <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="myapp"/>
        </intent-filter>
    </activity>

I've added links such as myapp://test to a PDF file, but when opening the file in Adobe Reader and clicking on the link, nothing happens.

Is this even possible?


Solution

  • The Adobe Reader app seems to block unknown URLs since everything works fine with other PDF reader apps such as the built in PDF Viewer in Dropbox.