Android: Enable/Disable Camera programmatically

Girija Patil picture Girija Patil · Jun 8, 2012 · Viewed 16.4k times · Source

I want to enable/disable camera programmatically in my application.

Answer

Nikolay Elenkov picture Nikolay Elenkov · Jun 8, 2012

You cannot do this from a regular app. You can do it from a device administrator, but the user has to explicitly enable it and it is only available on ICS. Here's the reference: http://developer.android.com/guide/topics/admin/device-admin.html