BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-23-2010, 10:57 PM   #1 (permalink)
New Member
 
Join Date: Apr 2010
Model: 8110
PIN: N/A
Carrier: usb
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Invoke system camera,can't display on foreground

Please Login to Remove!

Hi,everyone:
I use Invoke.invokeApplication to invoke system camera as follows,but the system camera interface can't be showed on foreground until the CameraScreen has been closed.I want make the camera interface on the foreground, and CameraScreen on the second.What can I do?

Code:
public class SysCamera extends UiApplication
{
    public static void main(String[] args)
    {
        SysCamera demo = new SysCamera();
        demo.enterEventDispatcher();
    }

    private SysCamera()
    {
        CameraScreen screen = new CameraScreen();
        Ui.getUiEngine().pushGlobalScreen(screen ,1, UiEngine.GLOBAL_QUEUE);
    }
}

final class CameraScreen extends MainScreen
{
    CameraScreen()
    {
        setTitle( new LabelField( "SysCamera Demo" , LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH ) );
        CameraArguments sysCamera=new CameraArguments(CameraArguments.ARG_CAMERA_APP );
        Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, sysCamera);
    }
}
Offline  
Old 08-24-2010, 10:02 PM   #2 (permalink)
New Member
 
Join Date: Apr 2010
Model: 8110
PIN: N/A
Carrier: usb
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

No one can solve itxxx65311;
Or it is not clear enoughxxx65311;
Offline  
Old 08-25-2010, 09:25 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

I don't get what you are trying to do. but the global screen you pushed will remain in foreground until you close it.

Try doing a regular pushScreen() instead of pushGlobalScreen().
Offline  
Old 08-25-2010, 11:17 AM   #4 (permalink)
New Member
 
Join Date: Apr 2010
Model: 8110
PIN: N/A
Carrier: usb
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
I don't get what you are trying to do. but the global screen you pushed will remain in foreground until you close it.

Try doing a regular pushScreen() instead of pushGlobalScreen().
Dougsg38p,thank you!
I just mean that until the screen of system camera invoked is under the CameraScreen.So I must close the CameraScreen first if want I want use the system camera incoked. But I don't want close it.

And I made a mistake, the class SysCamera extends Application, not UiApplication.So pushscreen could not work.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.