can't use the camera in Titanium

164 views
Skip to first unread message

Karthi P

unread,
Nov 23, 2011, 8:56:43 AM11/23/11
to appcelerat...@googlegroups.com

Hi,

In my Titanium application I need to take pictures from camera, while invoking the camera action I am getting following error

Permission failure: android.permission.CAMERA from uid=10037 pid=407
E
/CameraService(   34): Permission Denial: can
't use the camera pid=407, uid=10037

I am invoking the camera by following code

Titanium.Media.showCamera({
 
.....
 
.....
});

Where I have to add permission to use Camera? Anyone help me to solve this issue.



Thanks

Don Thorp (don@donthorp.net)

unread,
Nov 23, 2011, 9:52:04 AM11/23/11
to appcelerat...@googlegroups.com
Karthi,

Do you have a question open on Q&A with more information? What version of Titanium Mobile are you using? How are you invoking showCamera, is it in an anonymous function? Also do you have a custom AndroidManifest.xml?

Don

--
You received this message because you are subscribed to the Google Groups "Appcelerator Titanium" group.
To post to this group, send email to appcelerat...@googlegroups.com.
To unsubscribe from this group, send email to appcelerator-tit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/appcelerator-titanium?hl=en.

Karthi P

unread,
Nov 24, 2011, 1:00:50 PM11/24/11
to appcelerat...@googlegroups.com
Hi Don,

Thanks for your response. I am using Titanium sdk version is 1.7.3 , I am working in Android Platform (Version 2.3). I am invoking camera by using below method

Titanium.Media.showCamera({

});
Also I dont have custom AndroidManifest.xml file, how can I create custom AndroidManifest.xml....I am newbie to titanium and android

Thanks,
Karthi
Reply all
Reply to author
Forward
0 new messages