APP crashes when closing a screen, loses focus and said having no screens

I'm learning the basics for development of Java for BlackBerry, the version I use is 6 SDK.

While working on an example provided in my workplace, I came across a bug that causes the app freeze and stop to respond to user input after the closure of a screen. The console output showed a message saying:

Application in the foreground * lost focus because it has no screens.

which is weird, because a screen again. After that without this intervention can be made with the soft, I'm only able to hold the button menu to select go to the home screen, but if I try to enter the app is still frozen in the last window, I even rebooted the device and the app has remained the same (I do not know if this kind of persistent behavior is normal in the development of BlackBerry).

Just uninstall and then reinstall the soft manages to "solve this problem."

I checked the sample project and there is a class called ScreenManager which is implemented to manage the screens shown on the app. He keeps a vector of the stack of the current screens are displayed. This class is mainly used to manage paths inside the application, for example if I executed the action j Screen C, rather than return to Screen B, show screen F.

Each class that extends the screen has its onClose overloaded method:

public boolean onClose() {}
ui.getSm () .back (null);
Returns true;
}

to call a function named return on this class of ScreenManager, which checks the current state of the stack of the screens, if the vector object has only one object, then a dialog box asks the user what to do, if you close the application or stay in the app. Where there is more than 1 screen in our vector object, then simply call the method that executes the anti-pop call:

{} public void back()
If (pageStack.Size () - 1 == 0) {}
a single screen in stack, see the dialog box asking if the user wants to close app
choose int = Dialog.ask (Dialog.D_YES_NO,
ui.getRb () .getString (IU. EXIT_YES_NO));
if(Choose==Dialog.Yes)
{

System.Exit (0);
}
} else {}

Method that handles the anti-pop call and removes the current screen of our vector object
popPageStack();
}
        
}

The popPageStack method looks like this:

private void popPageStack() {}
pageStack.removeElementAt (pageStack.size () - 1); remove the object that represents the current screen
UiApplication.getUiApplication () .popScreen (UiApplication.getUiApplication () .getActiveScreen ()); remove the current screen of the application
}

Because this entire logic is called when fires the onClose method, I do not understand how I can "run out" of screens, especially since the console is saying there are not and a screen is still displayed.

What caused this problem in the application? Is it posible to pop the entire screen in the application and still be in the app?

EDIT

I did a little test of my own project and placed a menu item when you press on removes the only window I have and the behavior I described above is checked.

For some reason any test project, I am student pop all of its screens when you press return, but I don't understand how is it still possible. What I am pressing too fast back button and it is somehow triggering several persistent organic pollutants?

The situation you described happens when you last screen of pop on the BlackBerry 'view stack' but does not close the application.  Thus, the Blackberry operating system still tries to display something for the application and which is usually the last screen was displayed. However this isn't a real screen, so there is no interaction, like indeed the application has hung.  There no, there just no screens.

Now, you are going to say that can't happen because you keep track of the screens in the stack.  But sorry, I would say that this is what is happening and there is a bug in the management of battery screen.

In my opinion, it is a potential bug in the management of your stack.  I think you should recover the real of the Vector and pop screen than the screen, not that active.  You can also check to make sure that the screen that you are appearing is active.  Then allows you to detect when the battery of the screen that you have is not synchronized with the BlackBerry screen battery.

I don't know why your application is now its own stack of anyway, given that the Blackberry has a display of the battery itself.  You can browse the BlackBerry screen battery using getActiveScreen(), then getScreenBelow().

Tags: BlackBerry Developers

Similar Questions

  • Why my app crashes when in the dialer?

    I recently had a few crashes at reception or to make a call on my motorcycle g xt1032. I get a pop up saying unfortunately "contacts ceased." I am still able to make the call, but the pop up still until I press OK. Its really annoying that I have to press OK every time before answering a call.

    It's the recent updates of Lollipop for Google + which allows to create the questions and the Contacts app crash when you use the dialer on and outside. Very pretty darn boring and the last update on Google + do not resolve this problem for me yet. The simple but awkward solution is temporarily disable or uninstall the Google app + until they fix this annoying bug. It seems that the issue is not there when phones are updated to the lollipop, but it's still pretty boring for us with slow update schedules.

    TL; DR - disable Google + and the problems disappear!

  • Firefox 18.0 crashes when closing tabs

    Since installing firefox 18.0 my computer crashes when closing tabs or the end of the sessions

    I open norton and went to troubleshoot norton was an upgrade, so I installed upgrading and the problem was solved. Thanks for the comments

  • When will it be available to download the fix CS5 to crash when closing?

    When will it be available to download the fix CS5 to crash when closing?

    Thanks in advance for answering this question.

    If you have a problem with Bridge, thank you for posting in the forum of bridge.

    They're a different team, version number and calendar for the press of the Photoshop team.

  • The last update of Photoshop crashes when you try to save! and then there is not a version retrieved!

    The last update of Photoshop crashes when you try to save! and then there is not a version retrieved!

    How to bring back the old version. It's HORRIBLE! I lose all my work.

    Frustrated is not even close to what I am.

    If none of the troubleshooting routines have led to a positive result?

    Or have you been able to re - install one of the older versions?

  • Netflix and YouTube apps crash when the WiFi is enabled

    iPhone 6 - IOS 9.1 - Netflix, YouTube - latest versions (as of 05/12/15) - apps launch, show their splash screen and then immediately crash / close without error message. Router is an Asus rt-ac68u fw 3.0.0.4.378_9313 - question is the same on 2.4 and 5 GHz
    As soon as I turn off WiFi apps work fine - other applications that use the Internet, work fine on WiFi - its just Netflix and YouTube acting upward - and Netflix and YouTube work fine on all other devices in the House - htpc, laptop, android phone, etc.

    So far the troubleshooting steps: uninstall and reinstall applications phone power cycle, reset the WiFi settings, reset the phone to default settings = no change

    Any ideas or and I stuck waiting for IOS 9.2?

    The is probably something in the system software is corrupted and causing the accident. You have two options:

    Restore the phone from a backup

    OR

    If this does not resolve the problem, restore the phone as a new installation of a new copy of iOS 9.1. This one is a bit of a pain, because you have backup you data and then re sync everything (including applications). You may lose data in some applications as you won't be restoring a backup.

  • Dreamweaver CC 2015 is buggy - crashes when closing program. Can I revert to a previous version?

    When closing Dreamweaver CC 2015, it goes into the eternal spinning wheel and takes several minutes to finally react. I still have my files first close, then close the program. Now, after the closure of my files, I go to my task manager and just kill Dreamweaver. In addition, the updated Acrobat DC update version is also buggy. Just click on a pdf file and an error pops up that Acrobat has crashed - and I wasn't even in the running. Is there anyway that I can go back to previous versions? I'm really tired of buggy programs.

    How to find and install a previous Version of Adobe Apps in CC 2015 | Adobe Customer Care Team

  • Preview app crash when recording or editing images

    When I'm editing images (jpg format) in the preview, the application crashes when saving the image. For my work, I need to add labels and arrows to photos that I take in the field. The application crashes when registering, and I lose a huge amount of time trying to figure out what's wrong. I already deleted the preference files and the problem persists. I get this from the console application:

    Thank you

    06/05/16 4:15:11.408 PM Preview [3059]: ImageIO: CreateMetadataFromXMPBufferInternal threw error #203 (property node or a duplicate field)

    06/05/16 4:15:11.411 PM Preview [3059]: ImageIO: CreateMetadataFromXMPBufferInternal threw error #203 (property node or a duplicate field)

    06/05/16 com.apple.xpc.launchd [1 4:15:11.853 PM]: (com.apple.Preview.39072 [3059]) Service was released due to the signal: Segfault: 11

    06/05/16 com.apple.xpc.launchd [1 4:15:11.886 PM]: (com.apple.ReportCrash [3065]) endpoint has been activated through legacy launch (3) API. Please go to XPC or bootstrap_check_in(): com.apple.ReportCrash

    06/05/16 com.apple.SecurityServer [79 4:15:12.191 PM]: kill auth hosts

    06/05/16 com.apple.SecurityServer [79 4:15:12.191 PM]: Session 100049 destroyed

    In the Console window, select

    DIAGNOSIS AND diagnostic USE information reports ▹ user

    (not diagnose them and use Messages) in the list of logs on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points downwards. You will see a list of reports of incidents. The name of each report begins with the name of the process and ends with ".crash". Select the most recent report on the process in question. The content of the report is displayed at right. Allows you to copy and paste to validate all of the content, text, not a screenshot.

    I know that the report is long, perhaps several hundred lines. Please report all this anyway.

    If you don't see any report, but you know, he had an accident, you have chosen diagnostic and using the list of Log Messages. INFORMATION on the USE of DIAGNOSTIC AND choose instead.

    In the interest of privacy, I suggest that, before posting, you change the UUID ' anonymous, ' a long string of letters, numbers and dashes in the header of the report, if it is present (it cannot be). "

    Please do not post other types of diagnostic report - they are very long and rarely useful.

    When you post the accident report, you might see an error message on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Problem WORD PAD under Windows 7. A screen undeletable app crashes me to access my saved documents and may not be x'd out.

    When I opened Word Pad (successfully) in Windows 7, a problem blocking me to access my saved documents previously.  Rather than open the document saved as I click (to open saved documents) in the list of documents in the "document library", has downplayed the app screen appears on the window of the library of Documents and this application cannot be deleted because by clicking x on the top right does nothing.
    Using Safe Mode clumsily make you a previously saved in Word Pad document more. But it is not populate the list in the list of recent Documents in Word Pad. And in Safe Mode, it is displayed in a broken (and difficult to use) manner.
    Word Starter villainous blocking app appears as an opening window reduced titled Microsoft Word Starter 2010 (whatever it is), who appears on the document library list window and cannot be deleted.  When I try to x this unwanted App (top right of the application) to raise and close (because he keeps me to access my saved documents) nothing happens.  The x (close) or dash (minimize (-) button (upper-right corner of the app minimized window) do anything.)  If I can't access any of my saved Word Pad documents.  But I peut begin a new document again using the fresh blank document that appears when I open Word Pad, or open a new empty menu, which means Word Pad works fine.
    So I tried to solve the problem in uninstallation of Microsoft Office (which I don't use) it would uninstall the unwanted Word Starter 2010 application.  However, the problem still exists, and the unwanted app reappears every time I try to open my documents previously stored in the document library list.  And when I tried to search my computer for this unwanted Microsoft Word 2010 application to delete, I couldn't find any trace of it, anywhere.  There must be a hidden application.
    Not only that, but when I open freshly Word Pad - a list of recent Documents (in the menu option extreme top left (that I had used to open with) is inexplicably empty, but it will display all of my saved documents previously (on the right side).    Another method, that I've used to access documents in Word Pad was to click on my icon in taskbar (where I pinned the little icon to access Word Pad), but the list of my previous documents is therefore more in the field of small options which is the opposite, I used to be able to access my Word Pad documents recorded directly. The list is gone.
    So when I click on one of the documents stored in the document library list, that he does not attend the Word Pad at all, but rather, the unwanted app appears in front of the document library, list of blocking and cannot be deleted.  Only when I go out the document library he disappears with the window of the document library itself.
    Can you please tell me how I can remove the screen yellow reduced app unwanted (Word Starter 2010) to block my access to one of my Word Pad documents.  Right now, Safe Mode is the only way to access the Word Pad documents, and it's a way uncomfortable to do.
    I just want to make Microsoft Word Starter 2010 stop appearing when I don't need too and make it capable of being x'd out of the screen.

    This shows the manual method to uninstall Office

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

    The two links below show the methods of uninstalling Office Starter or click to run applications

    http://h10025.www1.HP.com/ewfrf/wc/document?CC=UK&LC=en&DLC=en&docName=c02981221#N272

    http://Office.Microsoft.com/en-us/Starter-Help/Update-repair-or-uninstall-Office-click-to-run-products-HA010382089.aspx

  • Adobe Creative Cloud apps crash when opening files in El Capitan

    I've upgraded to Mac OS 10.11.3 El Capitan. My old Adobe suite CS5 was already summary in the older operating system so I've upgraded to Adobe Creative Cloud 2015 (Photoshop, Illustrator, inDesign, Acrobat, etc.). Illustrator crashes when saving an image that is 'save for web' (Image open/save for web/change to save for web window / click on 'save' / crash). Photoshop crashes when you try to open the document (open Photoshop/Open - either from 'Open' in the home screen or "open" in menu bar/folder window open / click on the folder or file/crash ""). Acrobat opens but crashes after clicking on 'Open', has to be force quit. Dreamweaver does not open. InDesign crashes at unpredictable points of key strokes at first. I have not tried all the applications, but the entire suite CC is unusable. I'm many threads and problems with Apple and Adobe, but can't find the answer.

    That has not helped Bani but thanks for the suggestion. I went on the Chat with Adobe support and up to now have dates back to an apple problem, not Adobe. That the problem does not recur when we open a new user account and allows to open programs. Now I will try to fix my user account and I'll follow up with the results.

  • Illustrator CS5.5 crashes when closed

    I am running Windows 7 64 bit on a machine of Quad i7 with 8 GB of DDR, 1.5 TB of disk space and Adobe CS 5.5 installed.  I have a constant repetition of the Illustrator to crash when it closes.  It is a problem constant regardless of how close the program or if I have the options of "compatibility" for various active OS.   It has all the latest updates installed (as I know) and I have nothing to prevent the crash reporting in Windows.

    All my other Adobe Suite software works very well, reported nothing (other than Flash Player issues).

    Any thoughts?

    I discovered TeamViewer puts a "button" on the border of Windows Shell near the usual reduction, maximize and close buttons in the upper right corner.  The button installed by Teamviewer allows the user to share the program or the screen with another person in 'quick launch' options by clicking on.  Software Adobe do not use the standard windows shell API this button will crash on exit and start the process of troubleshooting windows.

    To disable the button on a program, it is necessary to open the Teamviewer, go to options, Options, advanced, the button 'Show Advanced Options', then back to general then pushed again.  Once you have the list for Advanced options, scroll to "Settings advanced computer and Contacts" and you should see "QuickConnect button" and a link to configure.  Press the button to add your individual Adobe programs to the list of applications of mobility.

    Restart Illustrator, and exit the program to verify that it not to crash on exit and you should be all set.

    (My thanks to the Teamspeak team for their help solve my problems)

    Charles.

  • Firefox crashes when closing FF39

    I've noticed lately the after doing an update of the installation of FF39 on FF38.0.6, each time I close FF without doing whatever it is that he displays an error that the Apps crashed, but does not give me an option to send accident report or to report crash. A change of programming language prevented wrestling accident report the problem now? It worked fine under FF38.0.6 without any problems, but not everytime I close FF it will say the apps crashed without change of report the crash? So, what happened to FF from 38 to 39 who poses as a problem now?

    Hey Tolkien.

    Afaik there was not a 38.0.6 version, so I might recommend having a clean reinstall of Firefox after backing up your profile: Back up and restore information in Firefox profiles
    

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from mozilla.org office (or choose the download for your operating system and language on this page) and save the file to install it on your computer.
    2. Once the download is complete, close all Firefox Windows (or open the Firefox menu

      Click the close button

      ).

    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    More information on the resettlement of Firefox can be found here.

    WARNING: Do not use an uninstaller to third parties as part of this process. This could permanently delete your Firefox profile data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and passwords saved. They can be retrieved easily unless they have been backed up on an external device! See back up and restore the information contained in the profiles of Firefox.

    Please report to say if this helped you!

    Thank you.

  • Firefox crashes when closing

    Recently, Firefox started crashing when I try to close it. This happens even after the decommissioning of the beta FF26 to FF25, put it back in place and after disabling all extensions.

    Here is the log of crash with extensions disabled:
    https://crash-stats.Mozilla.com/report/index/BP-baedd573-1806-4916-95D8-34fde2131110

    I deleted all the files of dump and minidump and this accident did not occur in the last ten days. NB also had other problems with these backup files.

  • 24.0 Firefox crashes when closing

    Since I installed Firefox 24.0 on my computer, it crashes when I close it, either using X or file-> exit. The only way to stop him is to use the Task Manager to kill the process. Windows is trying to find a solution to the problem and it crashes too, even if she answers when I click "Cancel". I tried to restart my computer and reset of Firefox. When Firefox crashes, it also prevents Internet Explorer from opening.

    I am using Windows 7 32 bit.

    Have you tried all the steps of troubleshooting, found at http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit . Its likely caused by an addon, also see questions to troubleshoot Firefox in Safe Mode.

  • Crashes when closing logic plugins

    Hey guys

    This is my first post so please excuse me if I did not follow the validation rules!

    After the update to 10.2.1 two days ago has developed a major problem:

    When I close all the windows plugin logic (after adding a compressor for example) logic is completely blocks and I have to restart the program. Also, it crashes when I close a logic with windows plugin project open. This problem occurs only with the plugins of logic. 3rd party plugins are fine as plugins for Apple.

    Everyone also knows that?

    I appreciate any help!

    Thank you very much!

    Is not the case here Samuel... on any of my systems testbed... including OS X 10.11.3 and LPX 10.2.1

    However, if you could copy and paste the contents of one of the newspapers crash you get then logic falls down..., I'll take a look / see if something stands out as being the cause for you...

    See you soon...

    Nigel

Maybe you are looking for

  • Matrix multiply more slowly on the RT PC?

    I was playing with large matrices and testing speed on my laptop (the code is intended to run on RT). The following code tests just directly using the calculation of table matrix multiply function vs.  Unsurprisingly the multiplication of matrix func

  • How to build dashboards of conditions dealing

    Hello world! I have 2 bays of 10 elements of each and I want to build a new one based on these. The first table consists of range of integers from 0 to 9. (it can be 0,1, 2..., 8, 9, but also any other combination with these numbers such as 0,0,1,2,

  • Nueva pregunta

    Porque el messaner windows me as hay a prolblema en mi eindows live conection

  • Answers are not displayed

    answers to questions are not displayed on my computer. not only. of repliese is displayed, space below this display is vacant

  • DRIVE_IRQL_NOT_LESS_OR_EQUAL Stop: 0X000000D1 (0 X 50453838, 0 x 0, 00000002 00000000 0X85B2996F)

    Original title: DRIVE_IRQL_NOT_LESS_OR_EQUAL When you try to start, I get the dreaded blue screen that looks like: http://TechRepublic.com.com/i/tr/downloads/images/bsod_a.jpg I put the error message in the title, and here's the other info: Stop: 0X0