I check which applications installed on the device can view pdf files:
Here's what's in Log:
How, if possible, can I determine which application is installed for viewing permanently and can I programmatically cancel it?
B4X:
Sub openPdf
Private in As Intent
in.Initialize(in.ACTION_VIEW, "file://")
in.SetType("application/pdf")
Dim pm As PackageManager
Log(pm.queryIntentActivities (in))
End Sub
B4X:
(ArrayList) [com.microsoft.skydrive/.pdfviewer.PdfIntentHandlerActivity,
com.dropbox.android/com.dropbox.preview.v3.ExternalPdfPreviewActivity,
com.google.android.apps.docs/com.google.android.apps.viewer.PdfViewerActivity,
com.microsoft.office.word/.WordActivity,
com.ncloudtech.cloudoffice/.NewIcons,
com.samsung.android.app.notes/com.samsung.android.support.senl.nt.app.trigger.PdfOnlyOpenTriggerActivity]