File.DirInternal to URI ?

jnbarban

Member
Licensed User
Longtime User
Hi , i use this code to open PDF file :

B4X:
Dim iIntent As Intent 
iIntent.Initialize(iIntent.ACTION_VIEW, File.DirInternal & "/Supports/" & sDossierVoulu)
iIntent.SetType("application/pdf")
StartActivity(iIntent)

sDossierVoulu = "MonPDF.pdf"

but this don't work . I Think that "File.DirInternal" not return a URI string

if i try :

B4X:
iIntent.Initialize(iIntent.ACTION_VIEW, "file:///Supports/" & sDossierVoulu)

it's ok...


Do you know how to use " File.DirInternal" with iIntent.Initialize function ?
 
Top