Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 66
Registered: ‎01-14-2010
My Device: 8700
My Carrier: Airtel

Siwtching on/off Blackberry Camera

Hello All


Is there a way to switch on/off the Blackberry camera thru our program?


Thanks & Regards

Sudhakar Chavali

BlackBerry Development Advisor
Posts: 15,723
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Switching on/off Blackberry Camera

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.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Posts: 112
Registered: ‎09-23-2009
My Device: Not Specified

Re: Siwtching on/off Blackberry Camera

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); 

To turn on camera from third party apps.


		new CameraArguments());



I hope this is what you're looking for.