In B4A you could use the below intent to view a PDF file. Would be nice to have the same functionality in B4i
Dim i As Intent 'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal , "data.pdf"))
i.SetType("application/pdf")
i.WrapAsIntentChooser("Choose PDF Viewer")
StartActivity(i)
Activity.Finish
Thanks,
Johan
Dim i As Intent 'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal , "data.pdf"))
i.SetType("application/pdf")
i.WrapAsIntentChooser("Choose PDF Viewer")
StartActivity(i)
Activity.Finish
Thanks,
Johan