Detect the passage from one screen to another screen

Hi guys.  My application starts with a screen called screen1.  The user can click on the BB of 7 points and choose an option to switch to another screen called screen2, to make changes to the admin.  I push screen2 in the stack.  Later, the user closes screen2 via the option "close" key BB by 7 points.  The screen1 appears again.  So far so good.

But I would like to make a few changes to screen1 (change labels text and image) based on some parameters of the screen2 user.

I tried to replace the onDisplay() for screen1, but it is called only when the screen is placed on the stack, and not when it eventually rises to the top after screen2 is popped :-(

I tried to replace onFocusNotify() for screen1, but it is called even when the menus option in the key of BB 7 points few disappear, when we leave screen1 go screen2 :-(

OnExposed() method is the same for my needs.

What I need is a way to know what screen1 reappears after serious another screen or full screen has closed.  If the battery includes all screens (menus, dialog boxes, etc.) then I guess I need a way to know what screen I just.  I guess I could keep my own State, but I guess that it is a problem that many others have dealt with...

Thanks for the tips!  -fd

I solved it just trivially pretty average overall.  My app looks like:

public class BBApp extends UiApplication {
    public static BBScreen1 screen1;
    public static BBScreen2 screen2;
    public static Screen whoJustClosed;

    public static void main(String[] args) { ... }
    public BBApp() { ... }

public class BBScreen2 extends MainScreen implements FieldChangeListener {
    public boolean onClose() {
        BBApp.whoJustClosed = this;
        return super.onClose();

public class BBScreen1 extends MainScreen implements FieldChangeListener {
    protected void onExposed() {
        if (BBApp.whoJustClosed == BBApp.screen2) {
            BBApp.whoJustClosed = null;
            Dialog.alert("screen1 onExposed() after screen2 !!");

(Edited after the post office, to the difficulty of formatting)

It works, but if there is a built in support for this, please let me know.  -fd

Tags: BlackBerry Developers

Similar Questions

  • Hyperion reports (.as files) the passage from one server to another?

    I try to import a report Hyperion (.as file) from one server to a new server. Import works but when I try to run the report from the new server, workspace said "unable to process request". If I try and open the report from the client, it tells me "error connecting to the server?

    I opened the. Report OF THE file in WordPad and edited the XML to replace the old server name with the name of the new server, but without success...?

    Any ideas? Thank you.

    Check your database connection in the new server.

  • Adobe Muse the passage from one computer to another?

    I just got a new computer.

    How to transfer to the new Muse of my old old computer?


    You can install it on the new system and activate it. To install

    1. download Creative cloud application manager

    Adobe - Adobe Application Manager: for Windows: Adobe Application Manager

    2. sign in with your Adobe ID

    3. click on applications and install Muse.

    Let me know if you have any question.

  • I use Origami as my screensaver and changing images quickly, is there a way to slow the progression from one slide to another?

    I use Origami as my screensaver and changing images quickly, is there a way to slow the progression from one slide to another?

    Check in system preferences > Desk Top & screensaver:


  • transfer of all, except the os from one computer to another

    want to transfer everything except the os from one computer to another


    I would like to get an external hard drive - the best of Seagate and Western Digital for about $100. I have a 320 GB Seagate and it's much more that I need. Can I save more than one computer at a time. It's basically a huge flash drive, and you can buy them both at the Wal-Mart or Target or Office Max, Office Depot, etc...

    This option is also better in the long run too - for data transfer in addition to save your documents in one place safe.

    If you feel this isn't for you, then you can move gradually using a flash drive (available at Wal-Mart, Target,...) or burn your data on CD and move it over that way.

    I hope this helps.


  • How can I move all my files from the user from one user to another on my pc?

    original title: moving files

    How can I move all my files from the user from one user to another on my pc?

    Log an administrator account. Open your folder 'user '. Select all the files, copy them, and paste them into the other folder 'user '.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista:  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move:

    If you have trouble with the search after you move the files, then rebuild the index:  Here is an article on how to use Indexing Options in Vista that may be useful for you:

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Is it possible to transfer the license from one computer to another by e-mail

    Is it possible to transfer the license from one computer to another by e-mail

    OS: Windows 7 Home Premium

    No, you transfer the license by ensuring its removed from the current computer. Continue to install on the new machine and reactivate by phone:

    Activate Windows 7 manually:
    1. click on start and in the search for box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.
    4. Select the telephone activation option and brace yourself for a real person.

    Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP

  • Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?


    Please try following steps to recreate a link to the PDF files.

    1. move and place the PDF file all missing in the any folder to the new computer.

    2 open the Control Panel file Muse and hit open assets of Windows > assets

    3. right click on a missing PDF file and choose repeat the link.

    4. Select the correct file to recreate a link and it will connect all the missing files in the folder.

    Let me know if you were talking about something else.



  • How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    You are allowed to install Photoshop on two computers. Recent versions allow to choose if they are versions Mac or Windows, or one of each!

  • move the CS6 from one computer to another

    I'm trying to move the CS6 from one computer to another, but I can't get the serial number to activate.  Help


    Please visit the below mentioned link doc KB and try the solutions:

    Error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Hope this will help.

    Kind regards

    Ana Maria

  • ADMITTED that Cookies exceptions list does not keep the entries from one session to another.

    YES, I searched the KB for a response... no joy. I want to manage my cookies by adding a few sites I want to allow cookies for, with all the other sites being rejected and me be prompted whenever a site wants to dnld a cookie. I think I understand all of the available settings, but I can't bet FF to keep the list of allowed websites from one session to another, and sometimes FF keeps their same immediately after I save them. I've never had a problem with FF3, but now I'm having this problem with FF4.

    You can't keep cookies if you run Firefox in private browsing mode.

    Private - browsing using Firefox without saving history all cookies are session cookies that expire if this session is over, so sites don't remember you.

  • Move the HD from one office to another desktop computer

    It is a question about moving the files & applications from one desktop to another. I try to get 1 year of use of existing & software equipment.

    I have an office of stand-alone Dell old 12 years with Windows XP that I use every day at home. I have an old Dell Office of 7 years with XP & no apps or files that I have gained from the work that I do not use.

    I guess the older machine is sick because I have to reset the clock each time I boot Windows. It seems to work otherwise. I want to act before the death of the sick machine.

    A method that I am considering moves chips drive & memory fixed older machine to the latest machine. These two components are less than 3 years. I replaced a fixed disk damaged & added some memory.

    The other method I see is to copy the contents of the fixed disk on the sick machine on the newer machine fixed drive, leaving the components in place.

    I know I need to buy new hardware and new software. I would wait 10 Windows.

    I'd like suggestions on the simple, reliable and cost-effective method to buy more time by using existing hardware.

    To move the data from the user, just install the xp installation cd, search for "other tasks" in the

    menu, search for "File Transfer Wizard", set the pc as old pc, select the file to save, save files

    in a new folder that you created, once its through, out of xp cd. Move the new folder to a cd

    Once through, on the new pc, install the xp installation cd, locate the file transfer, set the new pc, select

    to search for files, installation cd with user data, find the folder on cd, install FTW

    It automatically... Best bet is to run FTW on a new user account, and then move the files to the other as

    necessary. It's one way, others, install the HD from old pc to new, HD set as slave,

    with the HD as a slave, the data can be used with the operating system.

    Windows 10 is already available.

  • Page of the copy from one application to another application in the same workspace

    Is it possible to copy a page from one application to another application in the same workspace?

    If so could you tell me how its done?

    Thanking you in advance.

    go to any page in your target application and click on 'Create' > 'new page as a copy '. The rest of the process is driven by the magician.

    Denes Kubicek



  • Mask of the copy from one Clip to another in SG CS6

    Hello everyone, I have a very basic question beginner on the use of masks in Speedgrade. I'm new to this, so please forgive me.

    Is it possible to copy a mask from one clip to another? For example, I have a simple shot-reverse shot sequence going. As you can see below, my sequence of cutting in both sense between a man and a woman. The mask that I use is to correct man's shirt because it's too bright. I use the mask feature follow-up because the shot zooms in slowly. So, again, I'm sorry if it's a ridiculously stupid question, but do I have to create a new mask every time it cuts back to humans or is there a way to copy and paste the mask so that it is usually in the right place and I can customize it?


    fast thinking and support out of focus - save under the glance, then apply this LOOK for the next clip work? Look keeps the mask.

    What about the clip cut back and zoom - like sequence multicamera two cameras? I work with the source, two layers separate, if the camera is fixed and no zoom in the source sequence, work with the source, hide the shirt, no slow zoom for mask to follow, the only movement of person.

    talk quickly

Maybe you are looking for