无法使用钛金属相机
在我的钛应用程序中,我需要从相机拍照,在调用相机操作时出现以下错误我
Permission failure: android.permission.CAMERA from uid=10037 pid=407
E/CameraService( 34): Permission Denial: can't use the camera pid=407, uid=10037
通过以下代码调用相机
Titanium.Media.showCamera({
.....
.....
});
我必须在哪里添加使用相机的权限?任何人都可以帮我解决这个问题。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 Android 应用程序,您需要将以下行添加到
manifest.xml
(
标记之外):在使用 Titanium 的情况下,您通过将以下行添加到
标记下的tiapp.xml
中,可以达到相同的效果,如下所示: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.xml
under the<manifest>
tag, like this: