2

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?

2 Answers 2

1

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.

1

If you still need a right solution then use DevicePolicyManager.setCameraDisabled().

2
  • Maxim the right method is 'devicePolicyManager.setCameraDisabled(compName, isCameraOn);'
    – tanmeet
    Jul 28, 2016 at 11:51
  • Maxim do you need to answer him according to today or in future. Please ans relatively.
    – tanmeet
    Jul 29, 2016 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.