pushGlobalScreen (screen, priority, boolean inputRequired) and the deactivation of the application

I try to use a snippet of a peter_strange post to create tooltips in my application. In the code snippet, the deprecated method pushGlobalScreen (screen, priority, boolean inputRequired) was used to display the pop up. The question I have is that whenever the application is disabled, the ToolTip stays on the screen covering the screen HomeScreen/Call. The behavior that I'm trying to achieve is the ToolTip to be hidden, with the rest of the application without the persistent effect. I tried to mingle with the priority.

The code snippet below.

 class TooltipThread extends Thread {

        Object _notifyObject = new Object(); // Used to allow user to dismiss this Tooltip
        PopupScreen _tooltip; // Screen we are going to display
        UiApplication _ourApplication; // access to pushGlobalScreen and dismissStatus from our Application
        int _displayTime; // in seconds

        public TooltipThread(UiApplication ourApplication, PopupScreen tooltip, int displayTime) {
            _tooltip = tooltip;
            _ourApplication = ourApplication;
            _displayTime = displayTime;
        }

        public void run() {
            _ourApplication.pushGlobalScreen(_tooltip, 999, false);
            synchronized(_notifyObject) {
                try {
                    _notifyObject.wait(_displayTime * 1000);
                } catch (Exception e) {
                }
            };
            _ourApplication.dismissStatus(_tooltip);
        }

        public void dismiss() {
            // notify the waiting object to stop the Thread waiting
            synchronized(_notifyObject) {
                _notifyObject.notify();
            }
        }

    }

Global screens appear above the other forms in the application (non-global).  So the behavior you see is expected.  To solve it, you need detect when your application has been disabled and moved to the background and pop your bubble screen.

Tags: BlackBerry Developers

Similar Questions

  • Had cracked screen but the phone works still. Today screen is become white, and the phone rang again.  Did hard reset and now the phone is completely turned off and will not be exposed - not even the Red of the battery is displayed

    Had cracked screen but the phone works still. Today screen is become white, and the phone rang again.  Did hard reset and now the phone is completely turned off and will not be exposed - not even the Red of the battery is displayed

    He broke. Make an appointment at the genius bar and get it fixed / replaced. There is no magic words that will do well.

  • Satellite L300-PSLB8E - screen becomes all white and the laptop freezes

    Hello

    I have a Toshiba Satellite L300 PSLB8E. I initially bought with Windows Vista already installed on it. After a few years, I changed the operating system Windows 7 Ultimate. I installed the display and all the other necessary drivers (that is, sound, network, etc.).

    After I installed Windows 7, when I use the laptop for a while, the screen becomes all white and the laptop hangs. This happens spontaneously. Sometimes, in less than 10 minutes and other times that it can work perfectly for hours. I checked for loose batteries and other components, but everything seems fine.

    Physical damage only that there is a tiny crack on the screen in the bottom right of the screen. The operating system is not good? If I put windows Vista back as it was?

    Please advise and help understand me what the problem is with the laptop.

    Until we start discussion can you tell me what you do when this happen?
    Hard stop and restart?
    Is everything OK again when you do?

    It is not easy to say what exactly is the problem, but I put t think there is problem with OS and preinstalled display driver. A long time ago I installed Win7 Home Premium on friends L300 and it works perfectly.

    What you can try is to use the external monitor for a while and see if everything works well. If so, there is no problem with the operating system, drivers or graphics card. It may be that the display problem.

  • My screen is head down and the picture is huge

    Original title - HELP

    My screen is head down and the picture is huge I don't know how to solve this problem.

    Try these in order:

    1 you may have a hotkey enabled for this arrow of ctrl-alt-up/left/right , but this will only work if your updated display driver in place.

    2 on the desktop, right-click graphics options, Rotation - it will be if your display driver has put there.

    3 go to control panel display settings, display, change, settings advanced, {click the large tab that has the name of the author of top display driver}, Graphics Options {or similar term} - then dive around to find the controls - these are all arranged differently, so I can't offer that little will be in but the rotation controls will be there somewhere.

    4 when you find the rotation controls, take a look for the keyboard shortcuts in the same area of the configuration of the display driver - if you ever need to rotate your screen, then you can normally disable keyboard shortcuts to avoid accidentally hitting as you try to do something else [which is probably causing your current problem].

  • I'm in CS6 and the application window is too big on my laptop, it is off the screen both sides?

    I am in CS6 and the application window is too big on my laptop, it is off the screen on both sides, I have to scroll through the different menus. I tried Window / better and there is no options, window/workspace allows me to reset, but it doesn't matter. Is there a way for the application to adapt to the size of my screen?

    You can click on the Maximize button, which should fit photoshop to the screen?

  • Downloaded photoshop elements 12 ok installed and activated, it started and the start screen is displayed and the application is started then stop

    Downloaded photoshop elements 12 ok installed and activated, it started and the start screen is displayed and the application is started then stop immediately.

    Repetition and crashes again. Help it does not start!

    Solved! Tried everything in support documents and none of it worked. Frustration massive Adobe Chat staff who knows nothing and just told me to look at the documents of support again and again. They also gave me a phone number in Australia which has a recorde d message saying that the product is not supported! What is everything?

    Finally Adobe technical support Anand called me (from when I have opened the original case of support which gave me the serial number).

    Just had to rename the file SLCache in c:\program (x 86) and again the EULA and reactive. Now everything works fine. Way to hard.

  • my phone does not work after last update itunes on my phone connection with my pc, it shows only i tunes icon and the application of itune on my pc does not work

    my phone does not work after last update itunes on my phone connection with my pc, it shows only i tunes icon and the application of itune on my pc does not work

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    Once iTunes to work properly, you should be able to fix your device.

    TT2

  • "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image.

    At the start this morning, I received the message following "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image. Is there a simple solution to this problem? If it is ok, the unit freezes then

    Hello

    1. you remember to make changes to your computer, after which the issue started?

    I would recommend that you follow these steps and check if the problem persists.

    Step 1:

    I would recommend that you run a full scan using theMicrosoft Safety Scanner and check if the problem is related to malicious software.

    Note: You may lose data while eliminating malware.

    Step 2:

    Test the issue in a clean bootand verify if the issue.

    Note: Follow step 7 to your computer as usual.

    Step 3:

    Make SFC scan and check if the problem persists.

  • I pay $49,99 and the application does not change "open" again in "trial"... I restarted the creative cloud with the login and nothing change...

    pay $49,99 and the application does not change "open" again in "trial"... I restarted the creative cloud with the login and nothing change...

    Wow!

    So many entries of URL blocker, Adobe, this is the reason why you are unable to activate the CC apps.

    Follow the procedure below:

    • Remove all entries that has name of adobe. Then close the Textedit, it will Autosave.
    • Make sure that there is no entry of Adobe on the inside.
    • Then copy and paste the Hosts file in folder etc.
    • We replace the modified hosts file that we had copied on the desktop with the original Hosts file inside the folder etc.
    • When you are prompted, the authentication by password Mac,
    • Be sure to select the option Replace ...
    • Once you have replaced the Hosts file, double click on it again and check if the Hosts file is free of Adobe entries.
    • In the affirmative. launch creative cloud application and load the list of Apps and check.
  • I get this error every time I open LR, "Lightroom encountered and error during playback of sound preview cache and need to stop smoking" and the application does not open. He said LR would try and correct this error the next time I opened it, but the erro

    I get this error every time I open LR, "Lightroom encountered and error during playback of sound preview cache and need to stop smoking" and the application does not open. He said LR would try and correct this error the next time I opened it, but the error remains. I tried uninstalled and installed the application and the error remains. I use Windows 8.

    Manually delete the cache of the preview of your user folder.

    Mylenium

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • An unexpected error has occurred and the application will have to stop

    Hyperion 11.1.2.2, new environment.

    When you try to configure the EPMA database, Configurator crashes with the error "an unexpected error has occurred and the application will have to stop."

    Customer has configured the database of EPMA with success during the first time.

    Their DBA deleted database EPMA and re-created the database with the same name. Now, they are trying to configure EPMA data base and the Configurator crashes with the error mentioned.

    I had the same error after applying a few patches EPMA (.301 ou.302)
    Here's what Oracle provided support. This solved the problem for me to use the older, bigger jar file

    ----------------------------------------------------------------------------------------------------------------------------------
    Fix Oracle can be broken by the jar file that located awbconfig.jar
    d:\oracle\Middleware\EPMSystem11R1\products\Foundation\BPMA\Common

    There are missing classes in the patched version, latest of this pot

    To correct the configuration tool, you can make a copy of that existing pot and replace the old version uncorrected. To find the old version research
    \oracle\Middleware\EPMSystem11R1\.patch_storage\ to AwbConfig.jar

    To confirm this, look at the size of the current pot and the oldest pot - the news is 158 k and the former was 317 k - obviously a new miss some classes.

  • After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    Cmd - H show/hide extras, deselects cmd - D.

  • I am facing a problem when working in the Muse... The problem is that I can't remove my package page, when I try to delete it showing an error and the application terminates. I'm working on an emergency project which, I have to present tomorrow I hope y

    I am facing a problem when working in the Muse... The problem is that I can't remove my package page, when I try to delete it showing an error and the application terminates. I'm working on an emergency project which, I have to present tomorrow I hope you find a solution for the same. Help with the help of Adobe Muse CC

    Liston Hi,

    Steps to follow:

    1. Try to make a new complete site structure in MUSE and try to add a few pages and tries to remove it, just to check its not having not problem
    2. If the problem persists even, check if your site is stored on the external hard drive. Note: site should be registered on internal hard drives.
    3. Try to revive the MUSE, if the problem remains the same, we will refresh the preferences of MUSE.

    Hope it will work.

    Thank you

    Prabhakar Kumar

  • control the size of the Essbase.log and the application log

    Understand that there are many messages have been written for the Essbase.log and the application log. Is there any method to control what message to write to the log file in order to reduce the frequency of the e/s of the partition of the server data?

    Thanks for your help!

    You can think of forcing your ASF/ASO PAG & IND/DAT files to go on a separate disk from your base volume binary Essbase. This can be difficult to do in a SAN environment, because it is difficult to know what is really where.

    Another option would be to use CLEARLOGFILE to reset the logs (this will remove the whenever you stop/restart Essbase, so make sure that you check them if you need to open a historic session).
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/clearlogfile.htm

    Still another would be to SSLOGUNKNWON set to false to break down on the newspaper.
    See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/config/sslogunknown.htm

    Kind regards

    Cameron Lackpour

Maybe you are looking for