09-07-2011 12:45 PM
The camera is only on when the viewfinder is displayed. That you can control within your application.
If you mean disable the camera for all applications then no, you cannot do this from a third party applications. This can be done via IT Policy configured on a BlackBerry Enterprise Server.
09-08-2011 07:28 PM
You could use EventInjector.
Here is the code to turn off the camera from third party apps.
EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_
DOWN, Characters.ESCAPE, 0); inject.post(); inject.post();
To turn on camera from third party apps.
Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments());
I hope this is what you're looking for.