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.

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()...

  • 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.

  • 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

  • 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.

  • 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

  • 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);
    
  • Change the GUI on the underside of the screen after onsavepromt

    I have a screen of settings with the editfields, boxes and everything. When I change something on the screen and press ESC key box a dialog box will appear with save, throw and the Cancel button. I want to save the data entered in the recordstore. So I replace the onsavepromt method and I am able to save data successfully. The problem is I want to change the graphical interface of the screen just below the sreen of parameters with respect to the changed data.  I tried to push the screen below that programmatically. But he returned exception. How do I moify the screen below him register promt?

    The best way to proceed is to use a pushModal on your screen settings, then the code after the pushModal will be called after the your setting screen closed.  So, you can refresh your GUI.

  • BlackBerry Smartphones have off the screen when you're talking about?

    Is there a way to turn the screen off when I talk on the handset? It seems like a lot of often when I talk about the handset, my face pushed the screen and he does something such as speaker switching.  Thank you very much for the help.

    It is not a default application.  How I install it is I went to http://www.cellavant.com/TalkLock/ and entered my e-mail address.  Then I followed the instructions in the email

  • Videos YouTube are pushed off the screen to the right by an ad, how to fix?

    When I click on a link to a youtube video, the video appears for a few seconds in the correct location of the site, but then an ad square appears on the side left forcing the video screen to be pushed all the way to the right and off the screen. The video will be displayed on the right side of the column of the videos ' read popular. " Sometimes, a scroll bar appears at the bottom of the window, because the page is now much broader, which will allow me to scroll right to see the video, however, sometimes the scroll bar does not appear and I see only the left edge of the video.

    I reinstalled Adobe® Flash® Player, which did not help and I also have the latest version of Firefox. This began to happen quite recently... maybe a week, there is or not.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • I accidentally hit some keys on the keyboard and firfox is now lost at the top of the screen, I do not see the menu items if I push the slider to the top of some of the best appear on my screen, but not all please can you help me?

    I accidentally hit some keys on my keyboard. I don't know what keys hit my hand, but it caused Firefox to go beyond my screen visible at the top. The basis of Firefox is always correct and views correctly. The Chief is absent, but I can't access my menus such as bookmarks etc Articles. The screen drops down, if I push my cursor upwards, but not enough to show menu items. Can you please help?

    Press F11 to exit full-screen.

  • I upgraded to 5.0. The image is now my full screen. To see that the tabs I have open, I have to push my cursor up against the top edge of the screen, where it will appear in the display.

    In the improved version, the image of any page Web I'm on fills the entire screen. There is no info either the top of the screen or at the bottom of the screen, just the image of this Web page. If I push the cursor upward against the top of the image, then two nav bars pop open, one with a list of open tabs or windows and the other with a place to type the URL from another site, as well as on the right of the icons for Greasemonkey, etc.. Pushing against the background of the image icon does not produce anything.

    F11 activates / deactivates the full-screen mode - turn off.

  • My battery is swollen and pushing on the screen

    So I'm an avid user of Apple; I rave about how Apple products are all my friends all the time, because most of the time they are (this includes my IMac, Mac Book, IPad, and IPod).

    But in recent weeks, my IPhone 5 c has deteriorated. The battery seems to be swollen and pushing on the screen, causing my phone does not work at all except on the charge.

    Without warranty, what can I do? And how I can justify getting another IPhone?

    Take it to an Apple Store

  • Is there a button to push that initiates the screen saver without delay to launch?

    Is there a button to push that initiates the screen saver without delay to launch? I want to apply the screasaver with out having to wait the time it takes so that it starts on its own. Looking to see if there is a way to do this?

    Is there a button to push that initiates the screen saver without delay to launch? I want to apply the screasaver with out having to wait the time it takes so that it starts on its own. Looking to see if there is a way to do this?

    see if you can use this tutorial...
    To create an icon to launch the screensaver.

    http://www.howtogeek.com/HOWTO/Windows-Vista/create-icons-to-start-the-screensaver-on-Windows-Vista/

    PS adding...

    An easy way, scroll down for:

    Download of shortcut icons (Vista only). The author has created a "ready-made shortcuts.

    I have not tried. I can't guarantee it.* *.

Maybe you are looking for

  • Delete the contents of the Caches folder?

    Hi all Hard drive > users > username > library > Caches I discovered Caches of this record is About 60 GB big. I can delete everything inside this folder? Thank you!

  • Cannot install KB982524

    When I check the history all but one have finished.  (KB982524). I downloaded this update on the desktop and tried to do it in safe mode but the system setup program does not not in safe mode. I spent hours on this download and start without success.

  • HELP - icons reorganize on desktop

    I was moving from a folder on the desktop word documents and inadvertently, he became a toolbar at the top of the screen.  I dragged down and closed it - the square of the toolbar.  Since then, all the icons on the screen are rearranging themselves a

  • The Virtual Console connection failure

    PE R410 with iDRAC6 Enterprise. I use Firefox on Windows Vista. When I click on "Launch Virtual Console", a pop-up window wonder what should make Firefox of the JNLP file. If I choose to open it with Java Web Start, an error message "Splash: recv fai

  • BlackBerry smartphone how to install / check Blackberry Attachment Service on BIS?

    Some of our BB users have recently noted that some attachments (PDF) are no longer visible on their BB Curve 3 G phone.  I found a lot of messages saying that the 'Blackberry Attachment Service' is required, but I couldn't identify this option in the