Cannot call property takePicture
Hi,I have a problem while using function "Titanium.Media.takePicture();"
here is my code
Titanium.Media.showCamera({
success:function(event)
{
},
mediaTypes:Ti.Media.MEDIA_TYPE_PHOTO,
autohide:false
});
Titanium.Media.takePicture();
but things goes wrong,it returned me a Runtime Error with
"Cannot call property takePicture in object ti.modules,titanium.media.MediaModule@44c996c0. It is not a function,it is "object""
bold
is takePicture a property but not a function?how do i use it?
1 Answer
-
No, it's a function. I'm not sure why it wouldn't work. I suggest just taking that out and letting the user take the picture him/her self?