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.
For Android applications, you need to add the following line to
manifest.xml(outside of the<application>tag):In in which you’re using Titanium, you can achieve the same effect by adding the line to
tiapp.xmlunder the<manifest>tag, like this: