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

Parmak MAG12-UO 12-Volt Magnum Low Impedance Battery Operated 30-Mile Range E...
$80.53
Parmak MAG12-UO 12-Volt Magnum Low Impedance Battery Operated 30-Mile Range E... pictureZareba B10LI Battery Operated Low Impedance 10 Mile Fence Charger Zareba
$98.97
Zareba B10LI Battery Operated Low Impedance 10 Mile Fence Charger Zareba pictureTCI -Transcoil KLR3ATB 480V 1.5 HP 3 Amps 3% Impedence KLR Series Line Reactor
$23.74
TCI -Transcoil KLR3ATB 480V 1.5 HP 3 Amps 3% Impedence KLR Series Line Reactor pictureHP 41941B IMPEDANCE PROBE KIT COMPLETE, OPTION 350, 10KHZ-100MHZ,
$895.0
HP 41941B IMPEDANCE PROBE KIT COMPLETE, OPTION 350, 10KHZ-100MHZ, picture[20 pcs] BC Components 136 RVI 220uF 35V Radial Very Low Impedance 10x16
$1.45
[20 pcs] BC Components 136 RVI 220uF 35V Radial Very Low Impedance 10x16 picture






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