启用照相机设置 - 机器人 [英] Enable camera settings -- android

查看:148
本文介绍了启用照相机设置 - 机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这有可能使摄像头设置 pragrammatically?我想以编程方式启用相机设置页面,使用户能够执行从该页面的东西。我已搜查,到目前为止,不能能够得到适当的参考。

Is that possible to enable camera setting pragrammatically? I want to enable camera setting page programmatically and enable the user to do something from that page. I have searched so far, cant able to get proper reference.

推荐答案

我要假设你要打开相机preferences活动,并设置位置标记上,在谷歌地图指示用户以类似的方式为对GPS切换系统preferences活动。不幸的是,这是不可能的摄像头应用程序,主要是因为相机应用是无法跨Android设备的标准。

I'm going to assume you want to open the Camera preferences activity and set location tagging on, in a similar way that Google Maps directs the user to a system preferences activity for switching on GPS. Unfortunately this isn't possible for the camera application, mainly because the camera app isn't standard across android devices.

我个人有三个摄像头的应用程序在手机上,这还不包括像Eyem和Instagram的应用程序,我不认为这是不寻常的。他们都没有相同的活动设置preferences,甚至内置的应用程序没有一个标准的preferences活动。

Personally I have three camera apps on phone, not including apps like Eyem and Instagram, and I don't think this is unusual. None of them have the same activity for setting the preferences, and even the built in app doesn't have a standard preferences activity.

如果你想沿着这条路走下去,你也许可以做的最好的是正在供位置服务首先检查(见<一href=\"http://stackoverflow.com/questions/10311834/android-dev-how-to-check-if-location-services-are-enabled\">Android开发:如何调用的意图进行拍摄前检查,如果定位服务已启用?一个例子,如果你不确定)。指导用户如果需要的话,也将其打开,警告他们您需要的位置标注在他们选择的相机应用开启。

If you want to go down this route the best you can probably do is first check for location services being available (see Android dev.: How to check if Location Services are enabled? for an example if you are unsure) before invoking the intent to take the picture. Direct the user to turn them on if necessary and also, warn them that you require location tagging turned on in their camera app of choice.

这篇关于启用照相机设置 - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆