Skip to content

Instantly share code, notes, and snippets.

@aaroncampos
Created August 24, 2009 22:13
Show Gist options
  • Save aaroncampos/174262 to your computer and use it in GitHub Desktop.
Save aaroncampos/174262 to your computer and use it in GitHub Desktop.
function dialogCallback(filenames){
alert(filenames[0]);
}
function selectResultFile() {
var options = {
multiple: false,
title: "Open file",
types: ['*'],
typesDescription: "All files",
path: Titanium.Filesystem.getUserDirectory()
}
Titanium.UI.openFileChooserDialog(dialogCallback,options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment