I get this from a report:
I suspect that user doesn't have a pdf viewer. Should I just do a try while opening the intent activity, or there exists another check to do?
B4X:
Exception android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Android/data/myapp.app/files/apdffile.pdf typ=application/pdf flg=0x20000}
B4X:
Dim INTENT1 As Intent
INTENT1.Initialize(INTENT1.ACTION_VIEW, "file://" & pdfFileName)
INTENT1.SetType("application/pdf")
' should i add a try here?
try
StartActivity(INTENT1)
catch
'no pdf viewer available
'inform user to install one
end try