Problem with the automatic opening by ButtonField menu

Hello guys I have a problem.

I wrote this simple program to move from one screen to another screen

The problem is that when I press the button (to switch to another screen) on the next screen automatically opens the menu.

WHY?

Thanks for any answers

Net.rim.device.api.ui import. *;
Net.rim.device.api.ui.component import. *;
Net.rim.device.api.ui.container import. *;

SerializableAttribute public class DisplayChange extends UiApplication implements
{FieldChangeListener}
secondScreen of screen private;
private screen firstScreen;
Private ButtonField back,
    
Public Shared Sub main (String [] args) {}
PAP DisplayChange = new DisplayChange ();
theApp.enterEventDispatcher ();
}

public DisplayChange() {}
secondScreen = new MainScreen();
        
back = new ButtonField ("back", ButtonField.FIELD_LEFT);
back.setChangeListener (this);
secondScreen.add (back);

firstScreen = new MainScreen();
firstScreen.setTitle ("Primo screen");

firstScreen.add (new LabelField ("WELCOME\n"));

go = new ButtonField ("Go", ButtonField.FIELD_HCENTER);
go.setChangeListener (this);
firstScreen.add (GB);
pushScreen (firstScreen);

}
' Public Sub fieldChanged (field field, int context)
{
if(Field == Go) {}
pushScreen (secondScreen);
}

of other if(field == back) {}
popScreen (secondScreen);

}

}

}

Add the CONSUME_CLICK style to your buttonfield

Tags: BlackBerry Developers

Similar Questions

  • Windows Media Player version 11.0.6001.7010 with Vista. Problems with the automatic synchronization of music backup

    Windows Media Player version 11.0.6001.7010 with Vista. Problems with the automatic synchronization of music backup.

    Backup not working in all of these songs/albums that appear also in personal playlists. Does not account for all of the media/music in Windows Media Player. It is also not known where there are additional tracks from the same album, appearing in a personal reading list, these additional tracks (that is, it will take 2 album, but ignore the other 10). Has only begun to occur in 2-3 weeks.

    Previously, when I set up the sync partnership, there are options in playlists 'Sync' discovers the device Set Up, such as 'All music' 'All images' "5 * appreciation of music" etc. None of them showing now also available. Offered only my personal Playlists. All solutions?

    Hi Phil,

    Thanks for posting your question in the Microsoft Community forum. I understand that you can't auto sync in Windows Media Player. I'll help you with this problem.

    Before troubleshooting, provide us with information.

    1. don't you make changes to the computer before this problem?

    2. have you updated to Service Pack 2 installed?

    3. don't you make changes to the computer before this problem?

    This problem may occur if there is an inconsistency in the system files related to Windows Media Player. Follow these methods:

    Method 1.

    Solve problems in Windows Media Player: http://windows.microsoft.com/en-us/windows-vista/troubleshoot-problems-in-windows-media-player

    Method 2.

    Open the troubleshooting Windows Media Player settings Troubleshooter by clicking the Start button, then Control Panel. In the search box, type troubleshooting, and then click Troubleshooting. Click View all, and then click the Windows Media Player settings.

    Method 3.

    You can try to disable and enable the Media Player Control Panel.

    Steps to disable Media Player.

    (a) click the Start button, select Control Panel, click programs and then click turn on turn Windows features on or off. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (b) to develop media features and uncheck the box next to Windows Media player. Click on ok and wait a few minutes to complete. Once this is done, restart the computer.

    Steps to activate the Media Player.

    (a) click the Start button, select Control Panel, click programs and then click turn on turn Windows features on or off. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (b) to develop media features and check the box next to Windows Media player. Click on ok and wait a few minutes to complete. Once this is done, restart the computer.

    Method 4.

    You can run the Microsoft Safety Scanner to make sure that the computer is virus-free.

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

    Security Scanner warning: there will be a loss of data through an analysis using the Microsoft safety scanner to remove any viruses found.

    Additional information.

    Set up a device to sync in Windows Media Player: http://windows.microsoft.com/en-US/windows-vista/Set-up-a-device-to-sync-in-Windows-Media-Player

    Windows Media Player sync: Frequently asked questions: http://windows.microsoft.com/en-us/windows-vista/windows-media-player-sync-frequently-asked-questions

    If you need help on this particular issue or any other related Windows issue, let know us and we will be happy to help you.

  • Problem with the file opened in the application via InvokeRequest

    Hello

    my application opens the file and reads its binary content. I have a small problem to open a file from a navigation or an attachment.

    But first here's how my app works. I have a signal/slot-connection in my applicationUI constructor:

    ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app), m_invokeManager(new bb::system::InvokeManager(this)) {
    
      bool ok;
    
      // Since the variable is not used in the app, this is added to avoid a
      // compiler warning.
      Q_UNUSED(ok);
    
      ok = QObject::connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));
    
    }
    

    So if the user clicks on a file it can open in the following C++ function:

    void ApplicationUI::handleInvoke(const bb::system::InvokeRequest& request) {
    
        QString workingDir = QDir::currentPath();
    
    // Initiate the appropriate target based on the invoke.target-key
        if (request.target() == "com.myapp.card.previewer") {
    
            m_uri = request.uri().toString();
    
            QString FileToOpen = m_uri.replace(QString("file://"), QString(""));
    
            bb::cascades::Page* PageToOpen = ApplicationUI::doLoadPageDetails(FileToOpen);
    
            if (PageToOpen != NULL) {
                initPreviewerUI();
            } else {
                ShowToast("FEHLER! Seite kann nicht geladen werden");
            }
        }
    }
    

    The doLoadPageDetails () - function creates a page and filled with binary content of reading a file. If the file contains errors or is corrupted an exception is thrown.

    And here is my problem. When I opened a file corrupted first the screen becomes darker before opening the app. The I get error messages, exactly as I want. But the screen stays dark. I can't take another navigation element. Also, I can't use the back button. The only solution is to wipe the screen and then use the active frame to close the filebrowser and reopen it.

    That I can't use it with attachments to emails. When I open on and the screen is dark, I can't close the view for emails. So to see the mails again I have to restart the BB decive.

    I'm not fluent in English, but I hope you understand my problem. Is it possible to cancel the invokeRequest when the file is corrupted? Or what can I do here?

    Well, the solution was to use a Toast message but the dialog box. Because that prevents the application and I can't and shows just the message, with the button on this dialog box, I cannot tell the app to close.

  • Have problems with the scenes on a disc menu.

    Hello

    Working with first Elements 10 in an iMac OS X v.10.7.4

    I have a movie with three scenes on a disc menu (model menu 'Tropical holiday' of Muvipix).

    I surrounded each scene with a marker of the scene on the front and a cleat after on the timeline.

    When I burn the movie on a DVD and then play on my TV and the menu, pick a scene, he does not return to the menu but continues with the next scene and the next scene and so on until the end of the film.

    The film ends sometimes totally after playing a scene

    When I preview before burning, it works perfectly.

    I place the markers in transitions. It is maybe not so good?

    gardie10

    Try to remove the marker to arrest him for the end of the timeline.

    Good luck

    Hunt

  • Problems with the installation/opening After Effects 7.0 Pro

    Good morning/evening. Can someone help me get my copy of After Effects (7.0 Pro) to run? When I try to run the program, in a first step, the screen goes black, causing me to have to use the Task Manager to close. When I do that, I get the error message that:

    "After that the effects cannot continue: Sorry, After Effects broke down." See /http:www.adobe.com/support/products/aftereffects.html for known issues. If you can't always solve the problem, contact Technical Support of Adobe (2).

    (0: 42) »

    On the second attempt, I am asked to enter my serial number (my name and my organization is already automatically registered) but when I hit ENTER, told me then:

    "After effects error: your serial number is not valid."

    (0 :: 3) »

    I tried to enter my serial number with and without a hyphen after each number 4 (ie: XXXXXXXX-XXXX-XXXX-XXXX etc.), and I tried the uninstall and repair the program, but to no avail (I am invited to insert the disc by repairing, even if the disc is already in the drive and the seconds after the start of uninstall AE, I get the prompt "the wizard was interrupted before After Effects 7.0 could be installed completely (even if I try to UNINSTALL).") Your system has not changed. To complete installation at another time, please run Setup again. "Since my product does not give me the opportunity to talk to someone on the phone, I have to post on the forums. If anyone has experienced the same problem and knows how to fix it, please help!

    FYI: I have a HP Pavilion 2000, Windows 8. If the additional pc specs are needed, let me know.

    If it's cs2, error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3

  • Problem with the download & opening the App

    Well I made this account just today and have tried to download the trial version of Photoshop CC and creative cloud, both have downloaded without any problems, but when I go to open Photoshop CC, it comes up with a message saying: "You have 00 days left in your trial", why is this? (Im on a Macbook, incidentally). If someone could help, that would be grateful! Thank you.

    Hi Marcor79278333,

    Same issue was addressed in the below mentioned son, Veuileez refer to them:

    Re: Completed trial period?

    Re: My trial has expired, but I didn't try it

  • Problem with the help of drop-down menu in the lifecycle Designer 8.0

    Good day;

    I'm having a little bit of trouble with a drop-down list. It has been designed using Adobe LifeCycle Designer 8.0

    In a form, I have a total of 73 points that can be selected in the drop-down list. Currently I have 3 dropdowns on the form. In the future, I will add a total of 73 drop-down lists.

    "When I try to select an item that is more than 4th to the bottom of the list, I get the error message" Adobe Reader 9.1 has encountered an error and needs to close. " When I click on "error information" I get the text next message, "AppName - the Error Signature. AppVer: 9.1.0.163, ModName: ModVer, AcroForm.api. 9.1.2.82, 0000948 offset a

    Thank you all

    Chomp

    Hi Chomp,

    When in design mode:

    If you highlight the Hiarchy palette dropdown, it remains highlighted? or the flip pointing to someother object?

    If you click on it directly in the workspace. It shows "drop" in the palette object for the "Type"?  or something unexpected?

    If she will not be highlighted or say something unexpected, it is your question - I suspect by copying and pasting the drop something has gone wrong.

    If so, you must get rid of these bad objects. My experience is that if you have bad objects you can have difficulty to remove directly and may need to remove the parent (the tablerow or subform that they have).

    I'm very curious to know if this is your problem. Please post an update when you get a chance.

    Good luck

    Stephen

    P. S.

    Go slowly when you copy and paste - make sure you that Designer is finished with this operation before starting the next batter - it takes more time than you may realize. Additionally, make sure that the object palette indicates that you are where you think you are, before pasting. After you are done paste an object, Designer has an odd routine indication of the Master Page as object type when its done. If so, set the focus again for which you want to paste, before sticking another menu drop down always in your Clipboard. If your drop down boxes in rows in the table, think about copy and insert any lines containg your DDL

    Finally, 73 DDLS 73 points? Wow! IMHO, 73 points is too much for a user. Consider using the preOpen and script, the filling of the DDL event. If you do this then you can fill in the with a shorter list once the user has made some choices. Just a thought.

  • 11g: problem with the page open in a new window

    Hello

    I have a simple application with two pages. Page 1 contains only one button:
            <af:commandButton text="commandButton 1" useWindow="true"
                      action="dialog:action"/>
    {code}
    
    Page 2 is empty. Action is defined in adfc-config.xml:
    
    {code:xml}
        <control-flow-case>
          <from-outcome>dialog:action</from-outcome>
          <to-activity-id>untitled2</to-activity-id>
        </control-flow-case>
    {code}
    
    When I click the button, page 2 opens in new window but page 1 stays kind of "locked". It takes two clicks on the button to get page 2 to show again (the first click sort of resets the page, and the second one works as it should).
    Same behavior reproduces in a very complex application (where, for instance, a table can be scrolled but selection is impossible). 
    
    This worked in technology preview, did something change and some extra step is required or this is a bug? I can send someone a test case, if needed.
    
    Thanks, 
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Pedja,

    I have confirmed that it is the glasspane.

    When you open a dialog box in a new window like this, the main window is supposed to be blocked interaction until the dialog box is closed properly (this technique is sometimes called a "glasspane").

    Just close the dialog window by closing the browser window does not mean "close" dialog box. You must use the AdfFacesContext API to close the window.

    Add a command button on your page 2, bind it to an Action listener that does this:

        AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
    

    The behavior you see is correct; That is why the af: popup is probably a more "preferred" method to do so.

    I just saw your answer on the PDF - you'll still need clear the sort dialog box so that it works. You can use a ' print' button instead of a button 'command' (thus eliminating the need to use the framework of the dialogue)? I could not find any method of compensation of the dialog without actually closing the window.

    John

  • Problem with the menu "open with."

    Hello

    I'm using windows vista and have a strange problem with the "Open with" menu

    When I click on a file and select 'Open with', the program I want is not shown on the list of programs. so I click on "Browse" and find the program I want on the program folder files, but the very fact that it does not appear on the list of programs in the "Open with" menu.

    The program works normally, I can open the program and click on the file-> open and choose the file I want, but it is easier and faster to double-click a file to open the program...

    Any help is appreciated!

    Thank you!

    Record the programs with the "Open with:" dialog box
    http://WindowsXP.MVPs.org/openwithadd.htm
    Ramesh Srinivasan, Microsoft MVP

  • Problem with the scene selection menu

    I have two pages of scene selection menu.  The first page works fine but I have problems with the second page.  The highlite flashes market either on stage or on the main menu or on the arrow to return to the previous page.  So that he can move or do anything, the only way is to click on it when it flashes on.

    Is it possible to add buttons so I can have all my selections on 1 page?

    Yes. As Ann says you can do in Photoshop. As she points out, carefully study the structure of the layer of one of the Menus library. The small symbols at the beginning of the names of the layers are very important. Also, explore the different layers in the button layer sets. They have too specialized for naming conventions that must be followed and don't forget to turn off the visibility for any layer to highlight (highlight the secondary image button). It will be lit, when your user has access to this button.

    Also, is there a limit to how many buttons can have on a Menu by the DVD specifications. IIRC, it's 32 for 4:3 Menus and 16 for 16:9 Menus. Not sure if these exact limits apply to Menus of comics, but we are talking about DVD-video here and not comics.

    In addition, when you look at the Menu. PSD in Photoshop, special attention to the order button layer sets. Button #1 will be at the bottom of the Palette layers with button #2 above and so on. He also established the button routing, which is what happens when you press the arrow keys on a remote DVD player.

    In, you can edit routing button to do what you want. I think the button routing is only automatic in PrPro. You can check this. Unfortunately, I used PrPro to authoring only rarely and still dependent on the Auto-Play everything but simple DVD-Videos.

    Good luck

    Hunt

  • Hello! The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that s.

    Hello!
    The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that the server redirects the request for this address in a way that it will never end." How to solve this problem? Please excuse me for my English.
    Sincerely, Vsevolod.

    This can be caused by corrupted cookies or cookies that are not sent or otherwise blocked.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    See also:

  • Get the message "This Mac cannot connect to iCloud due to a problem with my Id, open Preferences to solve iCloud iCloud" after entering my password which is accepted and then after a minute or two messages is.

    Get the message "This Mac cannot connect to iCloud due to a problem with my Id, open Preferences to solve iCloud iCloud" after entering my password which is accepted and then after a minute or two messages is.

    I'm your pain ptapp!

    Through my research for an answer that solves this problem, I have found that not even Apple knows how to solve this problem of password to iCloud.

    All 4 of my devices constantly ask my password because of some problems with xyz account.

    Then I enter the password only to be told that iCloud cannot check my password.

    Then after several repetitions of this I get locked and have to go to the site apple id to change my password.

    I didn't spend $6 000 on these beautiful devices so I could spend countless hours dealing with support (with no positive result) and find themselves just beyond myself in frustration. I have a Mac Pro, 2 iPads, 2 iPhones and an iPod touch. All are behaving this way, no matter what it is I'm doing at the time.

    Apple needs to fix this problem, if they have any idea how to.

  • Problem open attachments in Windows Live Mail "there was a problem with the service Windows Live Hotmail (a matter of temporary network conectivity has nothing to do with your computer)".

    Hello

    In the last few weeks Im facing a problem when I try to open an attachment on my Windows Live Mail Im getting the following message: "there was a problem with the Windows Live Hotmail service (a matter of temporary network conectivity has nothing to do with your computer). Please try again. »

    Please let me know if I have a problem with my email account.

    Hello

    You will need to create a post on www.windowslivehelp.com for questions and assistance in connection with the Windows Live programs and services.

    In addition, take note of the error message that you are referencing, "...". "a network temporary conectivity issue has nothing to do with your computer.

  • I'm trying to download a game called football superstart, but there is a problem because when I try to open it there is a message that says that there was a problem with the administrator of the House

    OK im trying to download soccer superstar but I can download it but I can't open it because it shows a message that says that there is a problem with the House administrator I will try to find a solution to this problem can you guys please help me thank you.

    Hello

    1. could you give us the exact error message?
    2. based on what site you are trying to download and install the game?
    3 are logged as an administrator of the computer?

    Once the installation file downloaded, I would ask you right-click on it and select run as administrator and then check.

    I hope this helps.

  • Problems with the Windows on Windows 7 Photo Viewer, cannot open the picture

    Good evening!

    I can't open a few photos that I downloaded from my digital camera's SD card.  They are all in the same folder, and they are all JPEG.  Some of them are open very well, but there are MANY who are not open and I get the message: 'Windows Photo Viewer cannot open this photo because Photo Viewer does not support this file format, or you do not have the latest updates for Photo Viewer. "  As I said, they are all JPEG, as well as the Windows Photo Viewer is already set as my default Photo Viewer.   When I opened the window of the picture viewer I have not been invited for updates.

    I don't understand why some of my photos to shoot to the top of fine and the rest don't pull up at all.   Where will ensure that I have the latest update?  You have any other suggestions?

    Thank you in advance for your help!

    Looks like there are probably good copies elsewhere then... I was worried, you might well have lost some of your photos, and it is always better to access the card and copy and paste the files (and then check that they are ok) before using the software download and the removal from the Board. If the files have been corrupted somehow during the transfer process, they can still be recoverable in respect of the SD card using something like the free version of "recuva" providing that the SD card has not been re-used and previous files overwritten by new material. However, if your sister still photos as well which should not be necessary.

    I don't think this is likely to be a problem with the photo viewer, but let us know when you received that email... all the best - Ric.

Maybe you are looking for

  • According to Apple, I have a billing problem.

    ID: * @ * .com According to Apple, I have a billing problem.   The account you are trying to use an internet account and does not serve unless I have buy any item on the net.  This way I can keep a check on who try to soak my account. Please inform m

  • Satellite M100-222 - what memory module is good

    Can please, someone advise me which module of memory is good for above mentioned laptop. I would like to upgrade memory of 1 GB to 2 GB

  • Management switch disconnect

    LabVIEW 2014 MAX 15.3.0f0 SPST 32 SCXI-1166 map PXI interfaced via MXI, PXI-4072 card's interface to the SCXI chassis I have my alias roads and canals in MAX for use in TestStand. The problem I have is that I can connect a route and one of the channe

  • How to integrate a table with another table?

    Hi guys,. I have a problem that needs your help! I have two columns, the first column is time (x): 1, 1.2, 1.5, 1.7, 1.8... What is uneven table. The second column is O: 3, 5, 7, 8... X and have the same length, but the x is uneven. Now, I want to ma

  • HP 6525 how remove the tray to main paper

    How can I remove the tray to a printer of 6525 main paper?