Viewing files on Android

Hi,

Does anybody know how to view a file on Android? On iOS you can use the UIWebView for that, but on Android I see no similar option.

system.openURL with a file parameter doesn’t work. Any input/sample lines greatly appreciated!

–Maarten [import]uid: 5822 topic_id: 14715 reply_id: 314715[/import]

Nevermind, this does the trick on Android, assuming you have an app that can view the file installed:

local path = system.pathForFile(“some.pdf”,system.ResourceDirectory)
system.openURL(“file:” … path)

Awesome… [import]uid: 5822 topic_id: 14715 reply_id: 54456[/import]