Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Opening external files


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?

— asked September 11th 2010 by Stephen Clarke
  • desktop
  • file

3 Answers

  • via Titanium.Process.createProcess() all my dreams can come true


    — answered September 12th 2010 by Stephen Clarke
    • Where is this documented? It doesn't seem to be listed in the on-line API ref …

      In fact - I've seen other methods listed here that are not documented online.

      ** Is there a new (yet unpublished) API reference somewhere? (I've asked this before, but was summarily ignored.)

      — commented September 12th 2010 by Richard Brents
    • Nevermind … my bad … it's for desktop, not mobile.

      However - the mobile API doc still seems to be incomplete.

      — commented September 12th 2010 by Richard Brents
  • You can open PDFs in a webview like this:

    var webview = Titanium.UI.createWebView({
        url: my_file.pdf
    — answered September 13th 2010 by Richard Venneman
    1 Comment
    • Webview would only work here for iPhone. Android won't display anything.

      — commented September 29th 2010 by Dawson Toth
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.