-1

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?

Community
  • 1
  • 1
vitil
  • 256
  • 1
  • 3
  • 13
  • It should be ok unless PDF is doing some URL filtering. You need to update your Android Manifest to support the new scheme as well. You should edit your request and add code so we can see why it might not be triggering your application. – Cookster Jul 13 '15 at 23:25
  • Great, now I recommend you make an HTML file with test links to "myapp://" and see if that works. Eliminate Adobe Reader as a possible point of failure. – Cookster Jul 13 '15 at 23:34
  • BTW: do you really think that `myapp` scheme is going to be unique? – Marcin Orlowski Jul 13 '15 at 23:34
  • @Cookster It works with HTML files... I'll double check the links in the PDF file. – vitil Jul 13 '15 at 23:43
  • I double checked the links in the PDF file and seem correct. I guess Adobe Reader is filtering the URL. Maybe I'll try with another PDF reader software. – vitil Jul 13 '15 at 23:49

1 Answers1

2

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.

vitil
  • 256
  • 1
  • 3
  • 13