Welcome!

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

Reply
Developer
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified

camera preview programatic control

Hi,

   How do i know programatically, if in the camera picture preview is set to off or not?

Or how do i know programatically, if the camera picture preview screen is currently visible or not?

 

On OS 6 devices.

 

regards,

Abhijit Chandekar

Developer
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified

Re: camera preview programatic control

any ideas?

Developer
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified

Re: camera preview programatic control

I observed from the debug history that, the preview screen is a UI component called as CameraPreveiewScreen

 

"[0.0] FocusHistory: Focus lost; App net_rim_bb_camera; Component net.rim.device.apps.internal.camera.Camer[0.0] aPreviewScreen"

 

I thought of using UiApplication.getUiApplication().getActiveScreen() to get the current screen and see if its instance of  CameraPreveiewScreen, then i can act on it.But, looks like RIM screens are not identified by the getActiveScreen().

This methid only returns the Application related screen on the stack top and not the BB internal screens.