Skip to content

Instantly share code, notes, and snippets.

@Amimul100
Created July 7, 2014 08:02
Show Gist options
  • Save Amimul100/3689eec9a28acbe93552 to your computer and use it in GitHub Desktop.
Save Amimul100/3689eec9a28acbe93552 to your computer and use it in GitHub Desktop.
Titanium.Media.openPhotoGallery File Path ?
Hi,
You have to provide the Media type as Ti.Media.MEDIA_TYPE_PHOTO, Use the success function and Use ('image url: ' + image.nativePath) to display the image native path by alert or in API info
Titanium.Media.openPhotoGallery({
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
success:function(event) {
var image = event.media;
alert('image url: ' + image.nativePath);
}
});
Hope it helps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment