Cannot close the PopupScreen

I have a PopupScreen, NHCustomPopupScreen.

When a function is called, I display this screen:

NGCustomPopupScreen ngcps = new NGCustomPopupScreen();
UiApplication.getUiApplication () .pushScreen (ngcps);

After the function finishes its work, I want to close the NGCustomPopupScreen.  I'm sure that this is my problem, but I'm not sure what to change here.

UiApplication.getUiApplication () .popScreen (UiApplication.getUiApplication () .getActiveScreen ());

The NGCustomPopupScreen does not close.  Everything continues to operate.  Looks like I'm missing something small on this one.

Hey Champ,.

the problem could be that the other screen is active at the moment.

You can try adding the next checkig as:

Screen = UiApplication.getUiApplication () .getActiveScreen ();

If (NHCustomPopupScreen instanceof screen)
{
UiApplication.getUiApplication () .popScreen (screen);
}

Also if you have the screen reference I would more simple:

NGCustomPopupScreen ngcps = new NGCustomPopupScreen();

.....

UiApplication.getUiApplication () .popScreen (ngcps);

And also please wrap all the UI code inside the following construction (you will find more in the UI Developer's guide):

Synchronize (UiApplication.getUiApplication (.getEventLock))

{}

Tags: BlackBerry Developers

Similar Questions

  • Cannot close the first with other (LH one end) tab open are closed.

    Cannot close the first tab (end of LH we) but others are closing. Indicator download on tab keeps indefinitely - running windows under all the tabs are functioning normally.
    Open another copy of Firefox allows all tabs to work normally in this copy

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems

  • I have a statioery box that appears in the cenbter of my screen. Cannot close - the cursor moves UNDER it. How can I get rid of him?

    I have a box of stationery that opens in the center of my screen.  Cannot close - the cursor moves UNDER it. How can I get rid of him?

    Hello

    1. when exactly you get the pop up?

    2. What is the pop up to say?

    Additional information on the issue so that we can better help you.

  • PC W7 cannot close the creative Cloud application

    Does anyone know why my pc W7 cannot close the creative cloud application when I stopped my pc?

    When I want to shut down the pc, I always have a message and must close the creative application Cloud by force (I don't know the passage of law).

    THX!

    This seems like a minor issue, so I recommend leaving her alone and allowing victory to force her to stop.

    You can also open your Preferences cc dialog box and not start cc when you connect if this prompt mind.  Just run the application cc, at most once a month.

    and if you want to solve the problem, you would probably need to uninstall any cc including the application office, specific to the use of the Adobe Creative Cloud cleaning tool to solve installation problems , restart your computer and reinstall the desktop by https://creative.adobe.com/products/creative-cloud application

  • The title bar has stopped working and now I can't close the page with the cross or minimize or maximize, cannot close the pages

    Toolbar is not functional cannot use the cross at the top to close and cannot minimize or maximize the pages.

    What program is this (name and version)?

    Are you sure that the title bar is not hidden because the screen is in full screen mode?  Make sure it is in normal mode (usually hit the ESC key will do that).  When you say that you "cannot minimize or maximize or close pages" is because you don't see these icons or press them, and they do not work?  You see the title bar?  Is it the same with EACH program or all instances of this particular program, or only with this page?

    If it's an open program, you can still use the toolbar at the bottom of the screen and do a right click on the prgram open and then click Close.  If it isn't there, it can also be hidden. Move your mouse to the bottom of the screen and see if the toolbar appears.  If so right click on it and select properties and uncheck Hide able toolbar and click OK to close - that way it will always show (except when it is in full screen mode).

    You can also press CTRL-ALT = DEL to bring up the Manager tasks, go to Applications and select the program that you want to close, and then click end task.

    If you have access to the Menu bar, you can usually go into file, and then click close tab or simply close.

    If you can help me with answers to my questions (assuming that what I said has not solved the problem), then I will answer you with some suggestions to solve the problem (whatever it is)-, but there are too many possibilities without knowing more about the problem.

    Thanks and 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.

  • Cannot close the invoked addressbook of background app.

    Hello

    I am unable to close invoked addressbook of background app.

    For help on;

    try {}
    {}
    signalStatus5 = net.rim.device.api.system.RadioInfo
    . getSignalLevel();
    Thread.Sleep (5000);
    } If (signalStatus5 == RadioInfo.LEVEL_NO_COVERAGE);

    int modHandle = CodeModuleManager.getModuleHandle ("setringTone");
    ApplicationDescriptor apDes [] = CodeModuleManager
    .getApplicationDescriptors (modHandle);
    ApplicationDescriptor descriptor = apDes [0];
    ApplicationManager.getApplicationManager () (.runApplication)
    Descriptor);
    Invoke.invokeApplication
    (
    Invoke.APP_TYPE_ADDRESSBOOK,
    new AddressBookArguments
    ());
    } catch (InterruptedException e) {}
    Generative TODO catch block
    e.printStackTrace ();
    } catch (ApplicationManagerException e) {}
    Generative TODO catch block
    e.printStackTrace ();
    }

    You cannot close another application programmatically. If the user closes the addressbook, it should return to your application.

  • Cannot close the menu copy so we can print with the Photosmart C4580

    HP Photosmart C4580 all-in-One

    By mistake, we hit the button settings label number 3.  We do not have memory installed maps.  The instructions say that this:

    Otherwise, this button opens the copy settings menu.  Our problem is that we cannot close this menu so that we can print.

    We followed a hot and cold reset reset procedures without result.  The User Guide does not mention how to close this setting.

    So, we can now use the printer.  Can someone help us please?

    Thank you very much in advance,

    Yours,

    Sky22

    As I mentioned in the first post, I tried the hot and cold nothing works reset procedures.  I finally came to my senses and remove the printer and let windows 7 install the drivers again.  Then it worked.  I should have done that right away.

  • Cannot close the bookmark sidebar

    I use FireFox on Windows XP SP3.

    I chose a bookmark in the bookmark drop down menu. Instead open a new tab, the URL to the bookmark opened in the bookmark sidebar to the left of the main tab content.

    Now, I can't close or destroy the Bookmark sidebar. It takes a lot of the screen and it's very frustrating that I can't close or minimize.

    Please let me know if you have any tips on what to do to get rid of him.

    Thank you.

    Update:

    I was able to close the sidebar by selecting the menu item view > sidebar > bookmarks. So, the problem is almost solved. However, I wasn't able to get the sidebar to close by selecting the x in the upper right of the sidebar. There seems to be a bug in this mechanism to close the sidebar.

    Thank you.

    Bookmarks that open in the sidebar is the default value for the bookmarks created via a link or a button on a Web site to add a bookmark for this site.

    • Check the properties of a bookmark using the context menu in the side bar (Ctrl + B; Cmd + B on Mac).
    • In the Bookmark Manager (Bookmarks > show all bookmarks) you can click on the button more in the lower details pane on the right.
    • Make sure that "Load this bookmark in the sidebar" is not selected (uncheck it).
  • Cannot close the window (no tab) with 'Command'-'W' on the mac version of firefox 7.0.1 and firefox 8.0

    I noticed that firefox can not closed is no longer a window using "cmd" + "w" since the version 7.0.1. I have to close the window by clicking on the 'x' on the top left button instead. I just upgraded to version 8 today and the problem has always existed. It never happened in the previous version.

    It is quite embarrassing especially for pop-ups.

    is this a bug or a feature newly added? How can I restore it to the way it was?

    Thank you

    issue is resolved by disabling the plugin to evernote web clipper 5.0

  • OfficeJet 5740: Cannot close the tray paper HP Officejet 5740

    I can't close the tray paper in an Officejet 5740 after taking it out to there to insert the new paper to fill a tray empty. What is the solution? Thank you!

    Welcome @Ravens77,

  • Cannot close the dump imaq link to imaq in labview

    Hi there and thanks for opening up this post

    I'm still new in machine vision. I'm working on a project in Labview, but I am not able to connect to the session of vi IMAQ grab to close the session in the IMAQ vi... LabVIEW tells me that the two sons are of different data types: the first type is IMAQdx.ctl, the second is a class IMAQ.

    Can you help me?

    Thank you

    Hello

    It seems that you use close IMAQ but have IMAQdx screw everything else. NOR-IMAQdx and NOR-IMAQ separated driver API, it should be consistent with what set of screw you are using. Since you use IMAQdx, you just use the palette IMAQdx closing.

  • Cannot close the process mspaint.exe in Windows XP

    When I finshed the mspaint tool to edit a jpg file. even I close the program, but in the process, the process "mspaint.exe" list will also exist.

    I just use the shortcut to launch the tool and found that no compatibility of the shortcut property can be set in my system. is associated it with?

    Hello Evel,

    I suggest posting your question on our MSDN forums for developers:
  • cannot close the account after installation, an email account for a child, stopped when asked for credit card,

    Set up an email account for my grandson.  Was surprised when asked for a credit card to prove that I was an adult has closed the process when no other option.  Has decided to put the account in my name, but have to close it first.  Can't do it, because can not connect.   My granddaughter wants to use the same name she had with yahoo, and would therefore close the account now and not wait until it closes.   W close account yahoo, because because someone sends spam of her messages constantly, and this seemed like an easy solution.  This is the message I get:

    Work...

    @
    X

    Windows Live ID, advanced search

    Enter the words you want in your identity card, such as your personal interests.

    Search Windows Live ID options

    Work...

    ID available

    Click an option:

    Don't like these? Use the advanced search to Windows Live ID

    Or use your own email address

    E-mail address is removed from the privacy * is already a Windows Live ID. If it's your ID, you can use it to to connect.

    Work...

    Or get a Windows Live e-mail address

    Can anyone help?   Thank you... Catberg

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Cannot close the Task Manager window

    Hello:

    I am running Windows Vista 32 bit Home Premium on an HP laptop.

    Recently, I started having the following problem.

    When I press Ctrl-Alt-Delete , I get a pop-up window displaying a list

    current tasks are running.  It's OK.

    Sometimes, a task will be "crashes" and must be stopped or deleted.

    Now... I am more able to close/exit the Task Manager when I finished.

    I have a rectangular box, but no close or [X] button in the Task Manager

    upper right corner of the area.  I have to reboot to get rid of.

    Any ideas?

    Thank you

    DaleB

    Double click on the border of the box (or the white space next to him) he should do pimples appear

    Or right-click on it in the taskbar and close the window
  • Cannot close the disc completely Session

    When I use the function write cd (Vista) with active file system. After this I add files to a cd/dvd. Then I did a right click on the CD/DVD drive and select "closed session" he showed the cd player only icon on the status panel but not show the State of the ball and can not completely closed this cd.

    (I have try a normal layer with DVD + R)
    Please help to solve solutions

    Thank you

    Hello Mack_guide,

    Thank you for your response back!

    When you try to close the session and advise you that it is not finished, what's happening?  Have you tried to eject the disc?  If so, have you tried to test this drive on a different computer?  Below he indicates that by default, Windows automatically when you eject the disc.  However, I just want to check what happens if you eject the disc.  Please let us know status.  Thank you!

    If you are burning a live file system disc, however, you must close the current session to be able to use the disc in another computer or player (by default, Windows does automatically when you eject the disc).

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Restore the system to the original settings

    I'm trying to restore my computer to original settings to overcome a Trojan horse that has hijacked my Internet browser. When I use the restore option, it only allows me to come back in 3 months and then tells me that the parameters are then the same

  • CAN termination software sensor...

    Hello colleagues! I'll try to connect PCI - CAN high speed 2 series with "CANopen 3658 Kuebler sensor..." I connect the 120 Ohm resistor between pin 2 and 7 of the CAN on my card PCI - CAN, but my Kuebler sensor a cessation of software (it is describ

  • I have a laptop 1b60us g6 (2 weeks) and I can't increase the size of the text on the home pages,.

    I can't get the text size to increase on my laptop, I tried to go to the Panel and increase the size here but it does not work, type is if small that I can't read much, it just happened one day and I can't fix it.

  • Magnetic load point on defective Z2

    I got a Z2 since September and have never been able to use the magnetic charge with the DK 36, supplied with the phone. The magnetic clasp connects the phone to the charging station, but the phone does not charge. I've only been plug the docking stat

  • storage of mail in gmail (PSOP)?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! I haveI am trying to send a spreadsheet to someone and it says I have to choose a POP3 or SMT? in order to transmit this e-mail.  How can I find