Hi for show pdf befor api 24 i have used this code:
now this code don't work
any help please?
thanks
B4X:
Dim iPdf As Intent
Dim folder As String
folder=File.DirRootExternal & "/.PDF"
Dim filename As String
Filename = MyPDF.PDF
iPdf.Initialize(ii.ACTION_VIEW, ( "file://" & File.Combine(folder, filename)))
' i have tried also with
' iPdf.Initialize(ii.ACTION_VIEW, ( "content://" & File.Combine(folder, filename)))
iPdf.SetType("application/pdf")
'iPdf.WrapAsIntentChooser("Choose PDF Viewer")
StartActivity(iPdf)
now this code don't work
any help please?
thanks