开发者

stop android default camera

开发者 https://www.devze.com 2023-03-03 18:28 出处:网络
I am developing an application in which I have to block android default camera to take picture on pa开发者_StackOverflowrticular place(on particular latitude and longitude ).Has anyone do it eariler,h

I am developing an application in which I have to block android default camera to take picture on pa开发者_StackOverflowrticular place(on particular latitude and longitude ).Has anyone do it eariler,help me. Thanks in advance for the help


Look here:

http://developer.android.com/reference/android/hardware/Camera.html

if you instantiate the camera then no other applications can use it until you release it, so just instantiate the cam when in the "red-zone" and release it again when in the "green-zone".

0

精彩评论

暂无评论...
验证码 换一张
取 消