The screen does not

Hi all
I am new to blackberry programming.
I am trying to display a screen on click of a button. I managed to invoke a single screen.

I use the Blackberry Pearl 8100 Simulator to test.
Click button 2 "Don'ts" screen.
I followed the same procedure to call.
Help, please.

Hi John,.

Maybe you haven't added changeListener with the key.

For example:

ButtonField button1 = new ButtonField ("TestButton1");
Button1.setChangeListener (this);

I send you a sample class.

Hope this could help you.

import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;

class TestScreen extends MainScreen implements FieldChangeListener
{
    TestScreen()
    {
        ButtonField button1 = new ButtonField("TestButton1");
        button1.setChangeListener(this);

        ButtonField button2 = new ButtonField("TestButton2");
        button2.setChangeListener(this);

        this.add(button1);
        this.add(button2);
    }

     /**
     * FieldChangeListener implementation.
     * indicated what button was clicked.
     * buttons are distinguished by their label
     * net.rim.device.api.ui.FieldChangeListener
     */
    public void fieldChanged(Field field, int context)
    {
        String text = ((ButtonField)field).getLabel();
        if(text.equals("TestButton1"))
        {
           UiApplication.getUiApplication().pushScreen(new TestScreen1());
        }
        else if(text.equals("TestButton2"))
        {
           UiApplication.getUiApplication().pushScreen(new  TestScreen12());
        }
        else
        {
        }
    }
}

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help!

    I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help! I've tried everything. Google it. Searched through itunes, etc. It MUST be a bug, because it started right after I accepted the 12.3.3 update on my laptop running Windows 7 32.

    I count on the part of the main screen, which is not. Its strange. PLEASE HELP ME! In addition to the main page of the Itunes Store, everything else works fine as before. Music from my library work screens, etc.

    I also have exactly the same problem since the last update. Tried to find a way to solve the problem but no luck. Someone please help!

  • 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

  • How do synchronize you a phone if the screen does not work?

    How do synchronize you a phone if the screen does not work?

    Rstansbury wrote:

    How do synchronize you a phone if the screen does not work?

    You need solve the problem first otherwise you do not have.

  • Satellite L300 - 1-5 - the screen does not work

    Recently, I encountered a problem with my laptop, the screen does not work.
    I tested my inverter of the screen and my backlight lamp to see that if that was the problem, but they both worked perfectly, I then tried the entire screen with the parts and that worked too. (I tried in my friends Toshiba Satellite L300 - 217)

    Then I looked around online and got told to try to connect my laptop to an external monitor, so I did and the screen didn't work there either. So now I'm stuck, I have tried everything even made sure all connections aren't loose etc but it still does not.

    Anyone know what the problem with my laptop?

    Thank you, Tom

    Hey Buddy,

    > connect my laptop to an external monitor, so I did and the screen didn't work there either.
    This means that the internal monitor is ok and the reason must be the graphics card or card mother herself.

    I guess for now, you get only a screen empty and nothing happens on your laptop?

    In this case, you should contact the closest service provider authorized in your country. Just get in touch with the guys and ask for help. They can check the cell phone and fix it! ;)

  • Keys (Fn + F6 and F7) function to set the brightness of the screen does not work

    original title: Fn + F6 and F7 to adjust the brightness of the screen does not

    The function Fn + F6 or F7 has suddenly stopped working. It has been fine until now, but when I press on them now, nothing happens. I use a toshiba laptop with windows xp, can provide more information if necessary

    Thank you

    Hello

    1 have had any changes made to your computer before this problem?

    2. What is the number of the model of the computer?

    3. the other function keys work as should.

    Perform the steps mentioned below and check:

    Step 1:

    Check if the problem persists when the computer is in clean boot state.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Make sure that you put the computer to Start Normal once you have finished by referring to step 7 in the article.

    Step 2:

    I suggest you perform the steps mentioned below and check if it helps:

    http://forums.Toshiba.com/T5/keyboards-touchpads/fn-key-not-working/TD-p/253131

    (Valid for all models of Toshiba laptops)

    If the problem persists I suggest you to contact Toshiba to get help:

    http://Toshiba.com/Tai/support.jsp

    Let us know if it helps.

  • When I click and drag a window to move its location on the screen does not move properly.

    When I click and drag a window to move its location on the screen does not move properly. It leaves a "track" of windows. Whatever the problem is scroll is also affected when the page moves in waves. Why he started to do this, and if someone can offer a solution? Thank you!

    original title: "leakage" of windows

    It is a common problem with how XP displays the items on your screen. When things get a bit bogged down, you'll start to see trails of the window as you drag. Unfortunately, there is no solution, but future versions of Windows do not have this problem with a new rendering of the graphics system.

  • 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

  • Mute icon in the center of the screen does not move and does not remove

    Mute icon in centerl of the screen does not move and I can't remove it. It does not seam to meet what I did.

    Try below before he came.

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • ease of access on the keyboard of the screen does not work?

    My easy access on the keyboard of the screen does not work. I have easy access to the centre and left click on the keyboard of the screen then nothing. I double click, then nothing. I'm using a head pointer and live the clicker. I can access the touch keyboard, but it doesn't have the function or alt etc. keys. Can I download the easy access on the keyboard of the screen and reinstall?

    Thanks for the reply. He started working now. Very strang. Well.

  • Satellite A210 1AP - the screen does not turn

    I had a problem about a month ago with my Toshiba Satellite A210-1AP, just that the screen did not turn. Was working on the computer, all the lights were on. The light that shows the HARD disc flickered, as usual, but with display always off. So I stop, and the next time I tried it was warking as usual, with display turned on, he asked if I want to start windows normally or in safe mode (as when it is restarted abnormally). Then worked normally for a few days, and then it happens again. At this point, I could not go to the service (computer was in warranty, and how do you prove that something happens sometimes if it happened there). So I continued to use it, and as the time past the problem was more often. So I decided to go to the service.

    Guy in the service, said that the problem is the motherboard, so he changed the motherboard and it took months for him to do, and then when I called he said that it still does not. And maybe he has change rooms, display, graphics card is perhaps a problem, that he has not seen the problem like this...

    So my question is do you know what could be the problem? And the second question is can I demand of him, because he went from 30 days to give me a new computer rather change all parties to this issue?

    Thank you
    Nikola

    Hi mate,

    It's really hard to say what causes this problem, but I think that notebok technicians do a good job and they will be committed to repair your laptop as soon as possible. Maybe they ordered some new parts, but they are not available at this time

    Theoretically, all that could be the reason of this problem FL inverter, LCD screen, motherboard, graphics card, cable, etc.

    So I think you should call the technicians still what is the current status.
    But I doubt that you can get a new laptop for free. If it of still under warranty, it will be repaired.

  • Re: Satellite A300-21I trying to start but the screen does not light upward

    I have a laptop Toshiba Satellite A300-21I 15.4-inch around the age of 2 months.
    He walks yesterday and received a message (very short)-initialization failed, see the event log.

    Laptop computer tries to start but the display does not illuminate.
    No prior problems.

    The indices of anyone?
    Stanley

    Hello

    You are able to access the BIOS?
    You see a Toshiba start screen that usually appears at the beginning?

    What happens if you press F8 at the beginning of the boot process?

    Please provide more details!

  • After upgrading RAM, the screen does not work on Satellite L30 - 105

    Dial up on laptop and screen does not work. Have updated the memory to 2 GB.
    This can be the reason of the screen works not? Have tried rebooting the system, but it helps t n.

    Hello

    Can you please tell us which laptop model you have? Have you noticed the same problem until you do RAM upgrade?
    What's on the new RAM? Did you buy a compatible?

  • How to retrieve info from my i5c if the screen does not work and the warranty has expired?

    My iphone 5 c screen does not work and my warranty has expired there is 138days. I visited my carrier (AT & T) and contacted the Apple support.

    I want just the information of contact at least if nothing else my phone. What can I do?

    Have you tried to backup with iTunes on your computer?

    Are you also the timing or the iCloud backup device?

  • Bug: The screen does not sleep when the phone is plugged in / recharge

    The screen is not automatically timeout if the phone is connected via USB - it doesn't seem to be an option to change this.

    Looks like the screen is activated by default when loading, which means that it takes more time to load.

    Go into the settings of-> Applications-> development-> stay awake (uncheck)

  • Acer Aspire E5-511-P7SJ reinstalled with windows 7 32 bit. Brightness of the screen does not

    I use Acer Aspire E5-511-P7SJ windows.81 preinstalled. The system had Intel HD Graphics. I formatted the system and load windows 7 32 bit. After windows 7 installed, I am not able increase or decrease brightness.

    How can the problem be solved?

    At present, the system has Standard VGA Graphics Adapter. I tried and it driver from this link https://downloadcenter.intel.com/ /23763/Intel-HD-Graphics-Driver-for-Windows-7-8-8-1-32bit HD graphics card

    When installing, it says "the computer does not meet the minimum requirements to install the program.

    What are the solutions? Please advice

    Hello

    Have you tried the Intel HD graphics driver for Pentium N3540:

    J1750 processor Intel® Pentium® /J1850/J2850/N3510/N3520/N3540 N2805 / N2806 / 2810/N2815/N2820/N2910/N2920/N2940 n with Intel® HD Graphics

Maybe you are looking for

  • Rattling noise from the power adapter while loading using converter 600W

    I am trying to charge my cell phone with a battery of 12 v via an inverter 600w.However, the laptop will not charge and the charger is simply a little snap. Does anyone know why this is? And can someone help me?

  • Windows 7 - install error

    I got my new laptop today and was going through the Setup program and when you are prompted to select 32-bit or 64-bit I chose by mistake 32 bits. I want to know if its possible to redo the configuration and select 64-bit instead.I have no restore /

  • How to make a graphic inside a while loop to maintain the previous values

    At first I tried to use a the VI Express XY graphics to create a track of points.  However, the chart is a trace linear between the first point in the new line and the last point of the previous line.  It then creates the new line as you wish. I trie

  • F5 Refresh does not work

    Windows 7 IE9.  Refresh F5 is no longer (never made) work.  can someone help me.

  • Cannot connect to Hotmail

    I can't connect to my Hotmail account.  When I go to Hotmail I get redirected to a page scan Hotmail and has no way for me to connect.  Somehow I try to connect I get redirected to the page of Hotmail Sweep.