Reliably detect PDF support on Android device

后端 未结 2 870
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: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.

提交回复
热议问题