Reliably detect PDF support on Android device

后端 未结 2 882
Happy的楠姐
Happy的楠姐 2020-12-31 08:50

I am using a method to detect pdf support on an Android device that goes like this

public boolean canDisplayPdf() {
    PackageManager packageManager = appli         


        
相关标签:
2条回答
  • 2020-12-31 09:03

    From all sources I found and practical experience testing on a rather large variety of devices the approach I have taken is correct.

    I have not had any further feedback and think there might have been user error or a bad pdf application version involved.

    0 讨论(0)
  • 2020-12-31 09:11

    You're doing it correctly. You could consider updating the description of your app to say that you invoke a PDF app using the Android-approved method with the application/pdf MIME type. And also mention that if users have any trouble with the app, you'd appreciate an email to blahblah@myappsupport.com (or whatever your app support email address is setup to be). Maybe then they'd send an email instead of just leaving an anonymous comment.

    0 讨论(0)
提交回复
热议问题