Pushing and Popping screen does not

HI, when I select my options and click on the button, I want to close the current screen and open another screen, but I get a NullPointerException error.

// Add Selected Field Change
        HorizontalFieldManager hfm5 =  new HorizontalFieldManager(Field.FIELD_HCENTER | Field.FIELD_VCENTER);
        final String choices[] = {"General","On The Course","On The Tee","On The Green","In The Bunker"};
        final ObjectChoiceField objsel = new ObjectChoiceField("Select a Chapter",choices,0);
        hfm5.add(objsel);
        add(hfm5);

     // Add Button To Page
        HorizontalFieldManager hfm4 =  new HorizontalFieldManager(Field.FIELD_HCENTER | Field.FIELD_VCENTER);
        ButtonField mySubmitButton = new ButtonField("Tee Off",ButtonField.CONSUME_CLICK);
        hfm4.add(mySubmitButton);
        add(hfm4);

        mySubmitButton.setChangeListener(new FieldChangeListener(){
            public void fieldChanged(Field Field, int context){
                final String selectedValue = choices[objsel.getSelectedIndex()];
                if(selectedValue.equals("General"))
                {
                General general = new General();
                UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
                UiApplication.getUiApplication().pushScreen(general);
                }

                else if(selectedValue.equals("On The Course"))
                {
                OnCourse oncourse = new OnCourse();
                UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
                UiApplication.getUiApplication().pushScreen(oncourse);
                }

                else if(selectedValue.equals("On The Tee"))
                {
                OnTee ontee = new OnTee();
                UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
                UiApplication.getUiApplication().pushScreen(ontee);
                }

                else if(selectedValue.equals("On The Green"))
                {
                OnGreen ongreen = new OnGreen();
                UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
                UiApplication.getUiApplication().pushScreen(ongreen);
                }

                else if(selectedValue.equals("In The Bunker"))
                {
                InBunker inbunker = new InBunker();
                UiApplication.getUiApplication().popScreen(Ui.getUiEngine().getActiveScreen());
                UiApplication.getUiApplication().pushScreen(inbunker);
                }

                }});

Hi everyone, has managed to solve my problem, on my general screen, I was a drawing on the screen, but had not chosen a still, so left blank the file name. When I deleted this it worked.
See you soon,.
Max.

Tags: BlackBerry Developers

Similar Questions

  • Arm, wrist and the screen does not light.

    I just wanted to give a few comments. When I walk, carry heavy bags and I want to watch the time I lift my arm to look at my Apple Watch and the screen does not light. Maybe its because the movement of the arm is subtle, since I am carrying heavy bags. I was wondering if that could be repaired since both times I tried it, annoyed me. Walk in a street busy NYC with my groceries, I would like to know something, briefly, on my watch as I walk with the duty to stop or to disembark the bags.

    Hello

    It is a community of support based on the user.

    To make sure that your comments and suggestion are presented to the attention of Apple, you can submit the following form (all comments are read by Apple):

    https://www.Apple.com/feedback/watch.html

  • HP Envy 15 "touch screen power LED appears, but the fans does not and the screen does not light

    Hello!

    I'm a student in computer engineering at the University of Waterloo 1A, and I run a very serious problem with my HP Envy 15 "TouchSmart laptop computer running Windows 8.1. It is a problem that just started today, and I'd rather have a first support here before going to see the technical support Office sometimes tomorrow. It has to do with the screen and the fans where the Power LED lights in white, just as when the laptop works properly.

    (I have warranty on the laptop when it was purchased last June, except that if I find that I need to get a replacement, I'll lose all my work, I did on that since I started my semester.) It's so silly of me not to have all my work saved on a backup, because I have an external hard drive. Problem is, I've had too many problems in getting myself organized, I'm not being open-minded as I should, and worse, I'm not a balance between life and work at home.)

    Before I had my MATH 117 conference (Calculus 1 Engineering), I was in a nearby lab where my laptop was open and turned, works correctly. I've had NetBeans IDE running since I wanted to work on the second part of my current assignment of CS 137 (principles of programming). Because it was almost time for my presentation, I closed the laptop by simply moving the screen down on the keyboard, where it goes into mode 'sleep'. (Whenever I flip to the top of the screen, the laptop is supposed to return, and the sliding screen of Windows 8.1 connection will appear.)

    When I took my seat for reading, I wanted to spend a little time to work on my programming assignment. However, after the reversal of the screen to the top, instead of having the login screen appears, I encountered the problem: the power supply light is showing a white light, but I don't hear the fans between the ventilation openings on the left side of the laptop and the screen does not light. I tried to take the power for several seconds and once button at least 10 seconds, except that the power light continues to display on a white light. The Commission of the Wi - Fi light is not displayed.

    Whatever it is, I don't want to take out the battery because I have that on my last laptop, and it's from there that I couldn't turn to the former, a new market. If I leave the Envy laptop battery, it will short-circuit the connections between the battery and the computer, and so several components will FRY. For now, what I do let the laptop is to empty the load on the battery. Then, once I noticed that the power light does not project a white light, or plug in the AC adapter and try turning the laptop on the power button.

    It will take a little while for the circuit drain the load on my battery but...

    Anyway, please would you be kind enough to help me with this problem? I would really appreciate if you can give me several recommendations. Thank you!

    Hello @GregPDesWHP,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I read your post on how your laptop is not on, and I'd be happy to help you in this case!

    In order to restore the features of your computer once more, I recommend you follow the steps described in this document on the computer does not (Windows 8). If the problem persists after having exhausted all the steps in this document, I recommend you contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps!

    Concerning

  • Windows 8 update, remove programs and touch screen does not

    With the help of Windows 8 and a few apps would stop working and go back to the start screen. So I ran the "Refresh your PC w/o affecting Files. He removed most of my programs (Norton, Microsoft Office, among others) and now my PC HP TouchSmart 320, touch screen does not work. How can I recover my programs and get the touch screen to respond as before I 'Refresh '?

    HP may not have a driver Windows 8.  In general, manufacturers like HP allow the upgrade (and cancel you guaranteed if you do).  They want you to buy new hardware.

    You might be able to install the driver by right clicking on the installer, and then select Properties. On the Compatibility tab, change its operation under Windows 7.  This tent to fool the installer in the work.

    It worked for my graphics card, the latest version of it was for Vista (my computer came with Vista), but I was able to continue to use this graphics 7 and 8.  Your results may vary if it depends on how HP built their driver.

  • Mobile profiles (phone and Tablet) screen does not display does not correctly

    RoboHelp 11 on a Windows 7 machine

    I have a small project that I asked in August and just pick it up again today. The only changes that I made today have a background color in the selected schema and adding browsers to the Profiles screen (mobile phone, desktop),. I also changed the pixel size of screen above and saved profiles, but eventually changed his mind and changed their return. I don't know if it would make any difference to this problem. (When I did size changes HR told me to update media queries, but I do not use all... or at least none came in functionality to handle media queries.)

    Then I re-generated output, but the Tablet and phone screen sizes are does not display correctly when I tested it by changing the size of my browser - there is a browser size quite large "dead zone" where no content is displayed at all (which almost makes appear as the 'sensible' part of the output does not work), inland navigation (front and rear bar and buttons) is pushed upwards in the header bar , and no horizontal browser scroll bar appears so that I can scroll to see the edge of the large images. I mainly use IE but it happened as well as Firefox and Chrome. The desktop display seems to work very well. (I'm sorry I have no screenshots now - I can provide some if necessary.)

    I was wondering if it had something to do with my chosen 'model' but a new project that uses that even a (Theme1_Standard) had no problem. Now, I also noticed that the model seems to have changed since I was last in Robohelp, because the overview of model unchanged today was not the same as the model from August. The Readme file for the latest patch does not mention everything that I thought that seemed to be related.

    As I said, I changed were all one color, browsers display profile and the profile screen sizes which I subsequently put discarded. I'm completely at a loss as to what caused this and how to fix it. I feel like an OAF comprehensive because it seems to be related to something I * DID * but back on my steps gave nothing.

    Thank you!

    UPDATE

    Still having this problem, but in poking around I discovered that some of the program files on my local machine have been updated in mid-September (when it looks like ReadMe file in the last patch was installed on my computer) and others have been updated mid-October (the first time I was in HR since mid-August, so anything is a not then generate). I don't know if this means anything, but to me it seems slightly suspicious. THX.

    I tried to reproduce the problem, but I can't get the the problem you describe. I do not have a dead zone and wide content scroll correctly.

    The screenshots are pointing to the former route Theme1, so there may be a problem here. Can you please try the following:

    • Delete the layout of your project.
    • In Windows Explorer, navigate to the folder! ScreenLayout! in your RoboHelp project and delete the Theme1 folder.
    • Claire the! SSL! folder.
    • Clear the DPC.
    • Remove the output that you previously generated to ensure that no old file remains.
    • Open RoboHelp, add the layout and generate without making any changes? It's working now?

    Just to be on the safe side, Adobe has released a fix for HR 11.0.3 that some sensitive issues in layouts, however not correct the issues identified in this thread: questions in RoboHelp 11.0.3

    Kind regards

    Willam

  • Push and Pop screen in Thread

    Hello

    I'm running demo browser field of 4.6, and I want to push a wait dialog box before the thread starts, and pop as soon as I get the first event of the thread. Something like:

    public Object eventOccurred(Event event) {
    
            if (waitSc != null) {
                try {
                    thread.wait();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                UiApplication.getUiApplication().invokeLater(new Runnable() {
                    public void run() {
                        UiApplication.getUiApplication().popScreen(waitSc);
                        waitSc = null;
                        this.notifyAll();
                    }
                });
            }
    }
    

    But this gives me IllegalMonitorStateException. Does anyone know what I am doing wrong?

    Thanks in advane.

    Yes, you can. You should use invokelater, invokeandwait or synchronize on the eventlock.

  • BlackBerry Smartphones Cant Get to sleep and backlight screen does not turn off

    I tried to change the lighting settings in the menu options... will not work.

    Backlight does not cease, keyboard and track ball all lights.

    Tried it plugged, usually connected and always off.

    Only way it turns off when it is in the case.

    Help

    Please?

    With the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart.

    Now let's see if the backlight will turn off.

    Options > keyboard/screen, what is your timeout set on?

  • Windows 7 Ultimate lights up and the screen does not display on my screen

    The title says it all.

    Hi Brandon,.

    Thanks for posting your query in Microsoft Community.

    It is regrettable that the PC does not turn on and I'll be happy to answer your query. Let me ask you a few questions to help you accordingly.

    • What is the brand and model of the computer?
    • Remember to no particular change in the computer before the show?
    • When was the last time you were able to use the PC?
    • Do you have Windows 7 repair disc?
    • Do you have connected an external device to the computer (except keyboard and mouse)?
    • When you try to start, you are able to display the logo of the manufacturer?
    • You are able to start the computer in safe mode?

    There could be several reasons according to the questionnaire above for this issue, including hardware as well. Hardware and software configurations can vary considerably, there are several ways that you can take to solve problems that might prevent Windows to start (boot) correctly.

    I ask you to follow the steps described in the article below:

    What to do if Windows does not start correctly (information valid for Windows 7)

    Notes: Please, don't try installing and reinstalling Windows section from now.

    Important: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed after this date are deleted.

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • just got a new lenovo y50 and the screen does not come

    Hello.. I had a y50 lenovo a day ago. I loaded and when I turned it on the custom screen shows something... it won't turn... Only the lights on the keyboard upwards
    Thank you

    thx for your help... .but I guessed it was a connection problem... so when I opened, I find that the cable between the motherboard and the screen was loose... then it worked, I saw the language and region settings

  • My Macbook has big bumps and the screen does not close.  Can it be fixed?

    Previously, a fallen friend my 2013 non-retine Macbook Pro 13 inches on one floor wood to six feet in the air.  After the landing, my laptop proceeded to bounce back, and when I picked it up, he had a gargantuan tooth in the DVD player (see these images: http://imgur.com/a/CDg3R). I also noticed that the screen closes nor completely, even when I press on toward the bottom.  Y at - it repairs I can do?  Or is it better for me to buy a newer, more stylish mac?  What is the least expensive?  Thank you!

    Bend it back... with care. We could break it. Even if you do not, the result will be ugly... but it will be a character.

    Or is it better for me to buy a newer, more stylish mac?

    If you want to know whether it pays to pay Apple to fix it, the answer is that such a remedy will be almost certainly economically unjustified. I suggest Flex things up, so that you can continue to use it.

  • Re: Installed update the BIOS for my Pro Satellite L300D and now screen does not work

    Hello

    I installed the update of the BIOS 3 days ago, I had a few programs that are open at the time and also an external USB mouse in time. The hard drive crashed and then blacked out, but the power was still on the turbine runs at full skin. I tried to turn off the computer by the power button, but it wouldn't, so I let it run out of battery. Since then, the computer seems to turn on but the screen has been blackened since then, I can't see what the State of the hard drive is in.

    Any ideas?

    Hello!

    Oh dude, it looks like that your ROM module is damged due to a defective BIOS update :(

    A BIOS update should normally * do not get with the implementation of substantive programmes (also antivirus). I think that's the reason why the n t successfully update.

    However, you can do nothing. You will need help from a technician for laptop that can try to reflash the ROM module On the Toshiba page, you can search an ASP:
    http://EU.computers.Toshiba-Europe.com > support & downloads > find an authorized service provider

    Good bye

  • Video work and laptop screen does not, but I know it's good.

    I have a Latitude CPX I am recently used and it seems to work on an external monitor.  I know that the laptop screen/video cable is good because I put it in another CPX I have and it works fine.  I reconnect the video cable to the motherboard several times to be sure, and he did nothing.  I can see the backlight lights up weakly and finally color sort of purge on the screen.  What I don't understand is how the video a normal job and not the laptop screen?  I thought that if a video chip went bad it would work or not.  Any light you can do on the situation would be appreciated.


  • Screen does not work on Satellite L775-10F

    I turn on the computer and the screen does not work. Everything seems fine but the screen is all black.

    Nothings happening. I tried turning market and its still does not.
    I also tried to connect to my TV with an hdmi cable.

    What should I do?

    Connect it to the TV and wait until Windows 7 is fully loaded (you will hear sound Win) than trying to use FN + F5 several times. It may happen on the TV Office. Be sure you use the right settings on the TV (HDMI port must be enabled on the right).

    F nothing helps I presume the display can be defective then contact the closest service Toshiba and let them check your laptop.

  • Satellite M60 - screen does not light when I reboot

    I have a Toshiba Satellite M60 and the screen does not come when I turn off or restart. It takes approximately 12 trials before it lights. When the screen does the computer not light again starts ok just no screen.

    I put in sleep mode if I don't want the hassle of trying to get the screen lights up. What is a screen problem or inverter?

    Any help would be appreciated.

    I doubt that someone who has no experience with this stuff will be able to replace anything on the motherboard.
    For me it sounds very risky and I think that it of better to take the machine to an experienced technician to do this in his own hand and damage the whole motherboard

  • Qosmio DX730 and Win8 - touch screen does not work

    Hello

    My wife's parents bought a Toshiba Qosmio DX730 (model PQQ11A). They have recently upgraded to Windows 8 and the touch screen does not work now.

    The problem is lack of drivers (the monitor driver reports as a generic PnP monitor).

    I have went on the Toshiba site and selected downloads driver for the appropriate model and installed a number of drivers, including recommended NVidia display drivers. There is no drivers on the site that seem to install support for Toshiba touchscreen.

    Are there no drivers available for this model Windows 8? If not, is there another solution? If Yes, where can I find them. Any help very appreciated because they have nice and bought computer Windows 8 so they could use the touch functions.

    Thank you.

    Hello

    On the page of the Toshiba UE driver you can find drivers for Win 8.
    As far as I know that you will install the Toshiba display driver for the touch function works correctly.

    I found this driver.
    Please check if you can install this:
    [Win 8 TouchScreen software for Qosmio DX730 | http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory = 2 & selFamily = 381 & selSeries = 366 & selProduct = 7338 & salt ShortMod = null & language = 13 & selOS = 40 & selType = all & rupload = Yes & monthupload = & dayupload = & useDate = null & mode = allMachines & search = & action = search & macId = & country = all & selectedLanguage = 13 & type = all & page = 1 & ID = 83418 & O SID =-1 & driverLanguage = 42]

Maybe you are looking for

  • Mid 2007 iMac

    Hello! I have an iMac mid 2007, and, of course, it only is not supported (officially) for macOS Sierra. I read that an upgrade of the CPU can support, but no one knows if this is true? Thank you!! 3MJB

  • What is codefisher's toolbar buttons?

    I have not downloaded any program under this name. He appeared suddenly, and now when my computer is started this program? Open Firefox without any intervention on my part.

  • HP Pavilion DV6 6120us does not completely close

    My HP Pavilion DV6 6120us crashes during stop. Windows looks like it goes through the process of closing and the screen goes black but the border mouse pad remains on and wifi (f12) button goes orange. The only way to close it completely is to hold t

  • BlackBerry Smartphones transfer backup data from one blackberry to another

    Hello I had 2 blackberries, both were recorded on my blackberry desktop and saved. I lost one of them. I am now trying to transfer the data to the phone lost on the second phone, but I can't access the data that the desktop software asks me to connec

  • What type of e-mail accounts are NOT based on the web?

    Many web sites offer an option to contact them by e-mail. When I click on their link with them by e-mail, a box pops up saying there is no email associated with this program and I need to create an association in the default programs control panel. W