I have this piece of code
The thing is that the 'catch' segment does not execute, Android (Api 29) send a fast dissapear toast message "Please Install or Update the Addon Pdf".
For users like me that's no problem. But I'd like to take control and send a better message like, "Please Install Acrobat Reader" or something.
Is there any way to do that?
B4X:
' open Pdf Document
Try
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "")
Starter.Provider.SetFileUriAsIntentData(in, PdfFile)
in.SetType("application/pdf")
StartActivity(in)
Catch
MsgboxAsync("It seems that there's not a Pdf viewer application in the device", "Open Document")
Wait For Msgbox_Result (Resultx As Int)
End Try
The thing is that the 'catch' segment does not execute, Android (Api 29) send a fast dissapear toast message "Please Install or Update the Addon Pdf".
For users like me that's no problem. But I'd like to take control and send a better message like, "Please Install Acrobat Reader" or something.
Is there any way to do that?