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

Tektronix Plug in Module 5A18N Dual Trace Ampl for 5103N Oscilloscope /Mainframe
$37.99
Tektronix Plug in Module 5A18N Dual Trace Ampl for 5103N Oscilloscope /Mainframe picture10ft Flint & Walling Star #7 Windmill Main Frame
$14.99
10ft Flint & Walling Star #7 Windmill Main Frame pictureCHROMA 63025 LOAD MODULE WITH 6301 MAINFRAME
$495.0
CHROMA 63025 LOAD MODULE  WITH 6301 MAINFRAME  pictureHP Agilent 66000A Mainframe w/ 4 66101A & 66104A DC Power Modules
$499.95
HP Agilent 66000A Mainframe w/ 4 66101A & 66104A DC Power Modules pictureTektronix TM502A Power Mainframe/ 2-Slot Chassis Fully Tested, 30 days warranty
$99.0
Tektronix TM502A Power Mainframe/ 2-Slot Chassis Fully Tested, 30 days warranty picture






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