I want to create a security application in which I want to disable the mobile camera when some event occurs.
开发者_如何转开发As the user, I can disable the camera by going into settings. Can we do same thing in using code?
You could write code that opens all cameras and doesn't release them. As long as your app is running the camera won't be available to other apps, including the default camera picture taking thingamajig.
If you still need a right solution then use DevicePolicyManager.setCameraDisabled()
.
精彩评论