BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-23-2010, 09: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, 09: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, 08: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, 10: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

Vintage Tanker Steelcase ORANGE Office Swivel Desk Chair INDUSTRIAL Mid Century
$125.0
Vintage Tanker Steelcase ORANGE Office Swivel Desk Chair INDUSTRIAL Mid Century pictureVintage 1940s Washington Ks. Livestock Sales Barn Adv. Leather Pig Key Holder
$4.99
Vintage 1940s Washington Ks. Livestock Sales Barn Adv. Leather Pig Key Holder pictureVtg Letterpress Printing Block Cut Fouts Gilkes on the Bowery Adv NY NYC Fashion
$19.99
Vtg Letterpress Printing Block Cut Fouts Gilkes on the Bowery Adv NY NYC Fashion picturevintage i/t j.i. case farm tractor flat rate manual c-26 1973
$2.99
vintage i/t j.i. case farm tractor flat rate manual c-26    1973 pictureVintage Letterpress Printers Block - beach scene - palm trees, island scene
$9.0
Vintage Letterpress Printers Block - beach scene - palm trees, island scene   picture






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