Created
October 9, 2012 00:18
-
-
Save DirleiDionisio/3855781 to your computer and use it in GitHub Desktop.
Ti.Media.showCamera/openPhotoGallery doesn't work on Galaxy Note
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
var w1 = Ti.UI.createWindow({ | |
backgroundColor: 'yellow', | |
exitOnClose: true | |
}); | |
w1.addEventListener('click', function(){ | |
Ti.Media.showCamera({ | |
success: function(event){ | |
Ti.API.info('#success'); // -> no log, app closes before | |
}, | |
error: function(error) { | |
Ti.API.error('#error: ' + JSON.stringify(error)); | |
}, | |
cancel: function() { | |
Ti.API.info('#cancel'); // -> no log, app closes before | |
}, | |
saveToPhotoGallery: false, | |
alowEditing: false, | |
mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO] | |
}); | |
}); | |
w1.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment