Skip to content

Instantly share code, notes, and snippets.

@DirleiDionisio
Created October 9, 2012 00:18
Show Gist options
  • Save DirleiDionisio/3855781 to your computer and use it in GitHub Desktop.
Save DirleiDionisio/3855781 to your computer and use it in GitHub Desktop.
Ti.Media.showCamera/openPhotoGallery doesn't work on Galaxy Note
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