DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.05k stars 1.85k forks source link

Hyperlinks don't work for api 30 and above #1075

Closed perdix1975 closed 2 years ago

perdix1975 commented 2 years ago

Hyperlinks are functional if the in the build.gradle, in the field defaultConfig we put targetSdk 29. However, Google Play Store doesn't allow targetSdk less than 30. Can anyone fix this?

HylkeB commented 2 years ago

I updated to version 3.2.0-beta.1 and that solved it for me.

perdix1975 commented 2 years ago

Well, I also have 3.2.0-beta.1 but at my Samsung A70 (Android 11), hyperlinks pointing to YouTube, don't work...

perdix1975 commented 2 years ago

I have found the solution for my problem at https://stackoverflow.com/questions/62535856/intent-resolveactivity-returns-null-in-api-30

You may add QUERY_ALL_PACKAGES permission in AndroidManifest. It doesn't require run-time permission request. uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/ Now all hyperlinks work in every phone or tablet...