OutStream = File.OpenOutput(FindUserDownloadsFolder, customPdfFilenameToSave, False)
File.Copy2(Job.GetInputStream,OutStream)
OutStream.Close
'then I attempted to open it with OpenPDF
OpenPDF("file://" & File.Combine(FindUserDownloadsFolder, customPdfFilenameToSave))
Sub OpenPDF(FileName As String)
Dim i As Intent 'Requires a reference to the Phone library
i.Initialize(i.ACTION_VIEW, FileName)
Starter.Provider.SetFileUriAsIntentData(i, FileName)
i.SetType("application/pdf")
StartActivity(i)
End Sub
Sub FindUserDownloadsFolder As String
Return Starter.Provider.SharedFolder
End Sub