Created
July 7, 2014 08:02
-
-
Save Amimul100/3689eec9a28acbe93552 to your computer and use it in GitHub Desktop.
Titanium.Media.openPhotoGallery File Path ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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