Push the screen automatically

Hello

I have two simple screens. What I want to do is to push the second screen automatically after a certain period of time. Any thoughts on how to achieve this?

Thank you

Diego

It takes a different approach to the recommendation of mreed, but you can go.

Tags: BlackBerry Developers

Similar Questions

  • Not pushing the screens and camera 8900

    Im having two problems in my code...

    the first don't push a screen in a menu. What of weird, is that I have two other options on the menu that will push the screens.

    Here is the code:

    private _server MenuItem = new MenuItem ("Server", 110,
    30 k
    {
    public void run()
    {
    UiApplication.getUiApplication () .pushScreen (new Server());
                    
    }
    };

    the second problem is very similar... but it's the camera of 8900 dreaded

    SerializableAttribute public class CameraScreen extends form {}
        
    private photMan PhotoManager = new PhotoManager();
        
    private VideoControl _vidcon;
    Player;
    _videofield of private sector;
        
    private String image_Type = "encoding = jpeg & width = 2048 & height = 1536 & quality = very good;
    private byte [] image_Array;

    Phto of photos;
     
    CameraScreen _camScreen;
        
    VerticalFieldManager _vfm = new VerticalFieldManager (VerticalFieldManager.USE_ALL_HEIGHT |) VerticalFieldManager.USE_ALL_WIDTH)
    {public void paint (Graphics graphics)
    {
    graphics.setBackgroundColor (0x00BDC29A); / / Gray special
    Graphics.Clear;
    Super.Paint (Graphics);
    }};
        
        
    Private UiApplication UiApp;
        
    CameraScreen (Photos pht) {}

    Games of skill to the singleton
    photMan = PhotoManager.getInstance ();

    UiApp = UiApplication.getUiApplication ();
    Photo gets assigned locally and assigns him photomanager
    This.PHTO = pht;
    photMan.setPhoto (phto);
    make easy pop screen
    _camScreen = this;
                
    Add the player to the screen to be used
    _vfm. Add (_videofield);
            
        
    This starts the camara media feature
            
            
    CreateCamera();
    try {}
    Player.Start ();
    } catch (MediaException e) {}
    Dialog.Alert ("Err:" + e);
    }
            
            
    Dialog.Alert ("Press Enter to take photo");
    }

    It takes the photo and shows a preview
        
    Public Sub takePicture()
    {
    Dialog.Alert ("what happens");
    try {}
    photMan.setImageData (_vidcon.getSnapshot (image_Type));
    Dialog.Alert ("inside the test');
    } catch (MediaException e) {};
                               
               
    Dialog.Alert ("just before the next screen push");
    UiApp.pushScreen (new CamPreviewScreen (_camScreen));
            
        
    }

    Public Sub CreateCamera()
    {
    try {}
    Reader = Manager.createPlayer ("capture://video");
    Player.Realize ();
                
    _vidcon = (VideoControl) player.getControl ("alarm");
                
    If (_vidcon! = null)
    {
    _videofield = _vidcon.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, 'net.rim.device.api.ui.Field');
    _vidcon.setDisplayFullScreen (true);
    _vidcon.setVisible (true);
    }
    Add (_videofield);
                
                
                
            
    } catch (Exception e) {}
                    
    Dialog.Alert("E:"+e);
    }
    }

    -------------------------------------------------------------

    I use a headset button to access the feature, and I know that the function is called... This works also in the Simulator, but not in the device...

    Any help would be appreciated...

    This is random... but I solved the problem of 8900. Also, it happened to me when I was with the InvokeCamera App. The solution to get the CameraDemo to work is to make sure you build the program is less than or equal to the JDE version JDE on the phone

    Example:

    Compile the JDE 4.6.0 (computer)

    Work on 4.6.1 (phone)

    Compile the JDE 5.0.0 (computer)

    Does not work on 4.6.1 (phone)

    Just make sure that you compile the .cod with the correct version of the SDK and you wil have no problem. Hope this can help some people.

    Note: You will still need to clear the screen of all fields except for the videoField to do, this includes the setTitle()...

  • No matter what page I click on the screen automatically scrolls to the bottom of the screen

    original title: any page I click on the screen automatically scrolls to the bottom of the screen so THST I'm unable to read whats above. I suspect a recent windows update caused this problem

    See above

    Hi centerZQ of windows media.

    Since it is a recent issue, use System Restore to restore your computer to a point before the issue. This allows you to uninstall the updates or programs that you installed after the date you have selected, then make sure you have a way to reinstall all the programs, if necessary.

    Then, check the updates on your computer. If you have several updates to install, install them in small groups, until the problem reoccur. Once you have identified the update at the origin of the problem, post in the forum.

  • Pushing the screen

    Hello

    I am completely new to Java and Blackberry development and this may sound silly, but could someone help me with the starting code for pushing a screen?

    Please, I beg you!

    Agree with the previous poster.

    And I want to reiterate my previous comment.  It will be a difficult process of slow time if you come back to the forum for any problem that you hit.  You are much better by taking one of the sample applications by looking at how it works and then change it.

    About your problem, because you are not aware of the differences, use screen until you understand what you are doing better.

  • Problem with push the screen of an application

    Hello

    I developed an application with another point of entry. I have the main GUI application and an application that listens for push notifications. The background listener auto starts when the unit is turned on and tuned to push. When it receives the push message, it displays a popupscreen with the options 'launch' and 'Cancel '. By pressing 'start' should open the graphical application by pressing the main screen of the application. However, I get "ClassCastException" and I have no idea why.

    I looked around and the process is similar to what I did, but somehow, it does not work for me. Can someone explain or show me how to push a background application screen?

    See you soon!

    Welcome to the forums!

    I guess as you push a display context global [and maybe modal] 'launch' and 'Cancel' buttons. When you press 'start', then, you should not just push a screen - you should actually run the main application!

    To do this, you must create an application with the appropriate settings and say ApplicationManager descriptor to run it. Take a look at the documentation ApplicationManager, especially the section "running an application with different arguments. Make sure the arguments are according to the needs of your main application, not the bottom one.

    Only one problem: what happens if your application is already running but reduced? Don't worry - you try to run the same application with the same arguments will activate one already running!

    Good luck!

  • Push the screen Modal issues

    Hey thanks to pass along,

    I was sitting on my bed, when it hit me, is it possible to push a screen outside of the application.

    So I discovered on the global screens and pushing them. However. Suppose I want to dismiss the screen right now, but I wish instead of opening another application and return to it later. Is it possible to pushGlobalScreen, or I should do otherwise. If other, then suggestions?

    None

  • The mouse moves on the screen automatically

    Original title: what makes my page anywhere?

    In Windows XP... my mouse or my page are secure, they are moving! How to regain control?

    Hello

    You did all the changes made to the computer before the show?

    Perform a virus scan to help check and scan Microsoft security if the problem persists.

    See the following site:

    Microsoft safety scanner

    http://www.microsoft.com/security/scanner/en-us/default.aspx.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

  • pushed single screen several times on display battery but can not go back to the previous screen again by clicking on "back" to come to the first screen button

    Hi all

    There is a screen with meter as label, datefield and objectchoicefield in the menu drop down and add and go button, this screen is pushed repeatedly on display battery until the meter is new. But when I try to go back to the previous screen, there is problem normally by substituting the onClose() method you can pop current screen and can get the previous screen, using getActiveScreen() and then push it again if you do not override os onClose() automatically do it for you.

    But in above case when I click on the button "back" or screen previous override onclose and push, I see my first screen I wanted my current screen with the counter that is if active screen is having against label like new if I press the "back" button, it should display screen with the meter only eight and so on.

    Can someone please help me solve this problem.

    Thanks Peter for you answer, actually used function for pushscreen on stach display that was written by someone else, when I looked carefully there condtion as below,

    if (activeScreen != null) {
     Class screenClass =activeScreen.getClass();
        if (screen.getClass().equals(screenClass)) {
                        UiApplication.getUiApplication().popScreen(activeScreen);
        }
    }
    

    It's actually the previous screen of poping before push the screen from the class were same, just commented and everything works, even if you do not override onClose and press return, it will automatically displays the previous screen.

  • adjust the front panel of the screen size and re - position automatically objects on different systems

    Hello, I designed a vi which contains 5 led is placed at the centre of the façade that occupies the entire screen and 4 corners. However, this vi should be used on different systems, with different screen sizes. But on each screen, I'll need the size of the cover = size of the screen and the light to be placed in centres and corner of this new size of the screen automatically without manual operations and positioning bieng made every time. The option of resizing will perform this task completely or I have to go to some other techniques?

    As far as I know, what you want is not easy to do but it's doable but you have to do it programmatically (no adjustment of Labview). Here is an example for only 2 LEDs, but I guess you'll be able to make it work for your other LEDs.

    This VI maximizes the front and then positioned the 2 LEDs in the Center and top right on the race. LEDs are positioned according to their own corners left, not on the basis of their centers.

  • How to set the contrast of the screen of the iMac?

    Bought a new light to the office where I have the iMac 27 ". Unfortunately, the light produced by this new device shines more directly on the screen of the iMac, does the old light. Thus, when the light is on, the iMac adjusts the contrast of the screen so that the display appears quite washed out. When I turn on the light, the iMac readjusts the contrast to normal. (No, I can't adjust the position of the device, it is mounted directly on the desktop in the only possible way.)

    This seems to be an automatic adjustment of the iMac. At least, I can't find any sort of manual for setting the contrast. Is it possible to do so. Create a new color profile? Another tool?

    Thank you!

    Steve,

    You have a "automatically adjusts brightness" setting in system preferences > displays > display...?

    Automatically adjust the brightness or Ambient light compensation (depending on your screen)

    If your Mac has detection of ambient light, you can have the brightness of the screen automatically adjust according to the current light conditions.

  • Problem with the screen on IPAD curtain

    Hello

    I'm a bad psychic, and I have a problem with the screen curtain.

    A longitudinal of Voice Over, the screen curtain is automatically activate.

    Normally to turn it off, you must type three times with three fingers. Only on my IPAD when I type three times with three fingers is "saying that turns off or preach. Find it me impossible to disable the screen curtain when voiceover is active.

    The latest version of IOS 9.2.1 is installed.

    I reset the Ipad and nothing changes.

    Can someone help me?

    Thank you

    Is is possible that the zoom is also on your iPad? If this is the case, try to use a quadruple 3 finger tap to turn off screen curtain.

    If the zoom is not active, try:

    1. Possessing the sleep/wake and home button until the Apple logo appears or 15-20 seconds.
    2. If, you can't remove the curtain of the screen, I would advise you reset the settings of the iPad. Settings > general > reset > reset all settings. It will be his turn VoiceOver off, but then you can use iTunes to turn on VoiceOver. Voice-over should return without the curtain of the screen automatically active. IOS - Apple Support using accessibility features

    The of is it possible that zoom is also active your iPad? In this case, you must use a valve 3 quadruple finger pour disable the screen curtain.

    try if the zoom is not enabled:
    1. While holding the button market / sleep and home to ' to the Apple logo, or 15-20 seconds.
    2. If you still can't delete the screen curtain, I recommend to RESET the settings on the iPad. Settings > General > RESET > RESET all settings. This turns off VoiceOver, but you can then use iTunes to turn on VoiceOver. Back to turn voiceOver should without the curtain automatically active screen. Use IOS - Apple support accessibility features

    -AJ

  • Satellite L50-B-1NM - speakers turned off when you move the screen

    Hello

    yesterday, I got Toshiba L50-B-1NM.
    Everything seems to be ok except for one thing.
    Speakers to stop when the screen is slightly moved. There are positions of the screen, when they work, but just slightly push the screen and they are now closed. Movement of the screen has no impact on its external [helmet], is without a doubt the speakers or its connection.
    I wanted to use warranty, however, I am not sure if it covers this kind of defective. Anyone know?

    And he also said: [even if the warranty is still on]
    Product not available, unfortunately your product is currently not available so please contact your place of purchase.

    Thanks for help

    Thanks for your comments... Great that you can solve this problem

  • Yoga 900 - no keyboard on the screen in Word in tablet mode

    I have noticed that when I have my 900 in the configuration of the pad and open Word I can't bring up the keyboard

    Comment to Moderator: New thread is created. Edited topic. A: Re: 900 Yoga has arrived! What do you think?

    shack1968 wrote:

    I have noticed that when I have my 900 in the configuration of the pad and open Word I can't bring up the keyboard

    It is a problem with Word, rather than the 900 of Yoga, I think. I see the same thing on a Surface of 3 in tablet mode. You have two options to work around this problem:

    (a) turn off "Tablet Mode" to display the icon of the keyboard on the taskbar. Touch which will bring up the keyboard on the screen. Your physical keyboard should always be disabled when the 900 Yoga is bent in the Tablet configuration.

    (b) use the Word Mobile instead of the full word. It has all the features, but at least it will bring up the keyboard on the screen automatically in tablet mode.

  • Locking the screen 'None '.

    Hey... I can't change the screen to zero lock. At the beginning I didn't change because I like it like that... But after I changed the profile of comments (accidentally typed it because im curious), locking the screen automatically changes to drag... Now, I can't change it because in the security settings, it has no option to put nothing, he just slide, PIN, model and password

    The Tablet is nuber Acer Iconia One 7 (the one with the lowest camera) model is B1-770

    You must remove the user invited to select none on screenlock

    https://support.Google.com/nexus/answer/6115141?hl=en

    If you are not able to remove the guest user, backup your data and do a factory reset:

    backup of the settings / & reset - Reset data

  • The MenuItem to the screen

    Hi all, I have a problem of display of a menuitem when the Screen class is pushed. I want to show the menuitems can I display while the screen is pushed, but could not find a way to do it.

    I'm pretty sure it's something simple, but can anyone provide some assistance?

    I currently have the code to push the screen below:

    super(new VerticalFieldManager(Screen.DEFAULT_MENU));
    

    Help, please! Thank you very much!

    ankityadav4u wrote:

    protected void makeMenu (menu Menu, for example int) {}
    menu. Add (M1);
    super.makeMenu (menu, for example);
    }

    You really want to change the order of these two instructions - first super.makeMenu and menu.add.

    gyubok wrote:

    super(new VerticalFieldManager(Screen.DEFAULT_MENU));
    

    I guess that your screen extends the screen. If this is the case, the correct way of creation, it would be

    super(new VerticalFieldManager(), Screen.DEFAULT_MENU);
    

Maybe you are looking for