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

Testing and Deployment

Posts: 14
Registered: ‎04-27-2011
My Device: 8900
My Carrier: Idea

Programmatically lock unlock camera.

Hello friendz... i need a way to lock and unlock the camera in BB programmatically.over incoming sms.please give some idea to do the same.if possible give me some code sample.


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

Re: Programmatically lock unlock camera.

There is no way to programmatically disable the camera on a BlackBerry Smartphone.  It can be disabled using an IT Policy configured on the user's 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.
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified

Re: Programmatically lock unlock camera.

Hi Mark,

   IS there a way 1) To change the settings of picture preview in Camera options ( from BES or programatically)?

                              2) Programatically know if the screen on the top ( currently displayed to user) is Camera Image preview screen?




Abhijit Chandekar