I am working on a small iPhone app using Titanium/Appcelerator. Now what I am trying to do is the following:
I tried putting a OptionDialog into the success event of the camera, but it didn't work as expected.
maybe something like that.
dialog.addEventListener('click',function(e){
switch (e.index){
case 1:
takeAPicture();
case default:
...
};
});
function takeAPicture(){
Titanium.Media.showCamera({
success: function(evtSuccess) {
dialog.show();
},
...
});
};
Titanium.Media.takePicture();