Opening external files
Hello
Is there a way to open external (outside the app) files with Titanium?
eg. Can I open a Pdf using Acrobat (or whatever app is associated) via a Titanium function?
3 Answers
-
You can view PDFs in Android by utilizing Android Intents. This blog post shows you exactly how to do this with Titanium: http://developer.appcelerator.com/blog/2011/09/sharing-project-assets-with-android-intents.html
-
via Titanium.Process.createProcess() all my dreams can come true
:1
-
You can open PDFs in a webview like this:
var webview = Titanium.UI.createWebView({ url: my_file.pdf }); webview.open();