@Erel
Thank you for the time. And my apology for the late reply...been busy with other things.
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "somefile.doc"))
in.SetType("application/msword")
StartActivity(in)
I was thinking the above code is simple
...so I just edit on the part of file path to point where my actual file is located.
Dim MyPath As String
If File.Exists("/storage/usb3host/AOFFICEFiles/","FinalProject.docx") Then
Msgbox("File exist!","")
MyPath = "/storage/usb3host/AOFFICEFiles/FinalProject.docx"
i.Initialize(i.ACTION_VIEW, MyPath)
i.SetType("application/msword")
StartActivity(i)
Else
Msgbox("Not found","")
End If
When executing the code it displays the message box "File exist!" but says "document type not supported".
I'm not sure if this is related to the file path.
I have only Polaris Office installed. My target application is to list all files(docx,ppt,xls and pdf) from my usb storage device in a listview and by selecting the intended file it would open up the application that supports it(e.g Polaris Office).
Again thank you for the time.