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
We have the same issue. Our quirk is that it works great in debug but not in release. This is b4i, whether 1.x or 2.0. Any thoughts? Here is a file with the pertinent code.