App/screen loses focus after closing the Menu

I'm having a very strange problem with an application that tries to make it backward compatible for 4.2 and devices. Whenever I hit the BB button to display the menu, the screen loses focus and the thread stops to repaint. Currently I use a thread to continually update the screen. the app does not lose focus, as I can always press the BB button and force the screen to repaint only once, even if the fields do not update. The device, on which I'm testing is 4.5.0.77 Pearl 8130 (3.2.0.51).

I found this question... I had the break and live variables in the same control in the thread, so a break killed the wire...

Tags: BlackBerry Developers

Similar Questions

  • Entry text box loses focus after setting the innerHTML

    I'm trying to change my widget so that it supports the search when you type.

    But when my javascript event fires to submit ajax request entry box retains loses focus.  I tried to reset the focus after writing the html code with blackberry.focus.setFocus (), but this function sets the cursor at the beginning of the entry rather than at the end zone, so I can continue typing.

    Is it possible to update the html code in a DIV without losing the focus on my entry box, or there at - it a way to make the blackberry.focus.setFocus () to go to the end of the string currently in the box?

    Here is an example of the code that I am trying to work in my 9700 Simulator:

    ------ JS Code---function doLiveSearch(str) {  if (str.length==0) {    document.getElementById("results").innerHTML="";    return;  }   xmlhttp=new XMLHttpRequest();  xmlhttp.onreadystatechange = function() {   if (xmlhttp.readyState==4 && xmlhttp.status==200) {    document.getElementById("results").innerHTML=xmlhttp.responseText;     blackberry.focus.setFocus("search");    }  }  xmlhttp.open("GET","livesearch.php?q="+str,true);  xmlhttp.send();}
    
    ------- HTML Code-----
    ----here's an example what my lookup code returns.----
    One
    Two

    Try with selectionStart and selectionEnd before focus:

  • I am expierencing problems with my isight Camera on my MacBook Pro. Suddenly the video camera does not start (no green light on) FT or Photo Booth. The screen is black, if I restart computer it works but after closing the lid, it stops. V10.11.3

    I have problems with my view i camera on my Mac Book Pro. Suddenly the video camera does not work (no green light on) FT or Photo Booth. The screen is black, if I restart it, it works but after closing the lid it stops and I have to restart the computer.  I use V10.11.3. An idea about what is happening

    Hello mpm068,

    Thank you for using communities of Apple Support.

    Since your iSight webcam works up to the time that your Mac goes to sleep, I would like you to start please help desk trying to replicate this problem then to reboot in safe mode:

    1. Choose the Apple menu > shut down.

    2. After your Mac stops, wait 10 seconds, then press the power button.

    3. As soon as you hear the startup tone, hold down the SHIFT key.

      You must press the SHIFT key as soon as possible once you hear the startup tone, but not before.

    4. Release the SHIFT key when you see the gray Apple logo and progress indicator.

    To exit safe mode, restart your Mac, but no press during the startup.

    OS X El Capitan: start in safe mode

    Take care.

  • Loading the Google's HTTPS version causes Firefox to do 3 background request every 45 seconds even after closing the page.

    Loading the Google's HTTPS version causes Firefox to do 3 background request every 45 seconds even after closing the page.
    With any other HTTPS sites that support HTTP Strict Transport Security (HST), I noticed connection only 1 history.
    How can I disable these background connections?

    Hello, I'm no expert on the matter, but it is quite possible that the spdy Protocol, which is used by google on its secure sites (twitter atm) and is causing the behavior that you have seen.

    "SPDY connections are persistent connections. For optimal performance, it is expected that clients will not close the open connections until the user navigates away from all web pages referring to a connection, or until the server closes the connection. Servers are encouraged from the connections open as long as possible, but can stop idle connections if necessary. »
    http://mbelshe.github.com/SPDY-specification/draft-mbelshe-SPDY-00.XML#RFC.section.2.1

    You can try to disable support for the spdy Protocol in firefox (in all: config) and see if that changes the number and length of connections to the server.

  • Tecra M7: Tablet does not work after closing the lid

    Someone had problems with the Tablet does not work after closing the lid on a Tecra M7? BIOS is 3.20

    Does not happen on hibernate or sleep.
    I have the set cover to do nothing on close.

    Hello

    What do you with Tablet does not work after closing the lid?
    Is - what the laptop freezes or what? What happens exactly?

    Closing the parameters adjustable lid to Hibernate or standby mode or no action.
    These settings can be defined in configuration power saver actions.

    If you have some problems with some Toshiba applications installed, I recommend you to reinstall the program and TOSHIBA common Modules that doesn t work properly!

    Best regards

  • Start-up problems: I have a black screen when I log in the menu

    When I start my computer, I get a black screen when I log in the menu. I can still access the computer on safe mode, but I can't find a solution. Antivirus Avira found no detection, so I don't think that's associated virus.

    Follow these steps to try to solve your problems of boot.

     

     

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Scan with Malwarebytes in SafeMode with networking to ensure:

    http://www.Malwarebytes.org/MBAM.php

    Malwarebytes is as its name suggests, a Malware Remover!

    Download the free Version from the link above.

    Download, install, upgrade and scan once a fortnight...

    How to use Malwarebytes once it is installed and updated:

    1. open Malwarebytes > click the update tab at the top > get the latest updates.

    2. on the Scanner tab, make sure that thePerform quick scan option is selected and then click on theScan button to start scanning your computer

    3 MBAM will now start to scan your computer for malware. This process can take some time.

    4. when the scan is complete, a message box will appear

    5. you must click on the OK button to close the message box and continue the process of Malwareremoval.

    6. you will now be at the main scanner screen. At this point, you must click on the button toview the result .

    7. a screen showing all of the malware displayed the program that is

    8. you must now click remove selection button to remove all the listed malware. MBAM will now delete all of the files and registry keys and add them to the programs quarantine. When you remove files, MBAM may require a restart in order to eliminate some of them. If it displays a message stating that it needs to restart, please let him do. Once your computer has rebooted, and logged in, please continue with the remaining steps.

    9. when MBAM has finished remove the malware, it will open the scan log and display it in Notepad. See the log as desired, and then close the Notepad window.

    10. you can now exit the MBAM program.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    It's Vista Security Forum.

    If the above does not she, repost in the Vista repair and recovery Forum:

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/threads

    See you soon.

    Mick Murphy - Microsoft partner

  • Restart the problem after closing the lid of the laptop for a few minutes

    I use Windows 7 Home Premium on my Asus A53S. I have reboot issues a few minutes after closing the computer laptop lid eventhough I put what to do after closing the lid to "do nothing" for both on battery and the plug. And it will keep restarting over and over again. Rest

    Hi DennisHii,

    You did changes to the computer before the show?

    Method 1
    I suggest you perform the clean boot and check if the problem persists.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: Follow step 3 of section of boot KB929135 to reset the computer in normal mode.

    Method 2
    I suggest you try the steps from the following link:

    Windows 7 is not going to sleep
    http://support.Microsoft.com/kb/976877

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

  • On 4 k screen I do not see the menu, windows, etc... too small in adobe photoshop multidimensional. Can I configure their more big without change resulution of display?

    On 4 k screen I do not see the menu, windows, etc... too small in adobe photoshop multidimensional. Can I configure their more big without change resulution of display?

    In Photoshop CC 2014, go to preferences-> experimental features and allow 200% scaling of the interface user.

  • 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().

  • After closing the dialog box screen, menu by default is displayed

    I have a simple program that consists of a screen and a button. When the button is clicked, it displays a dialog box in the button handler. Once the dialog box is closed, the parts of the menu are displayed. Very strange.

    Here's the code that displays the dialog box:

    public void fieldChanged( Field field, int context )
        {
            String label = "";
    
            if ( field instanceof ButtonField )
            {
                label = ((ButtonField)field).getLabel();
            }
    
            //if this was the login button, display the popup.
            if ( label.equalsIgnoreCase( "Login" ) )
            {
                String icon = "questionmark.png";
                Bitmap bitmap = Bitmap.getBitmapResource( icon );
                String [] options = new String [] { "Yes", "No", "Cancel" };
                int [] optionIndexes = new int [] { Dialog.YES, Dialog.NO, Dialog.CANCEL };
                Dialog dialog = new Dialog( "Select an option", options, optionIndexes, optionIndexes[2], bitmap );
                dialog.doModal();
    
            }
    
        }
    

    Once the dialog box is closed, this is:

    I have no idea why this show after the closure of the dialog box. Any ideas?

    Well done

    I think that many people would find answers to their questions if they tried harder with search.  And you find faster as well!  And whenver I creative search, I usually find something else useful that I was looking for.  Kind of like Google where you can go off on a complete tangent...

    In any case, can mark you this as resolved?  See you soon

  • Satellite L10-232: black screen after closing the lid.

    Hello

    I moved my laptop (satellite L10-232) in another room, it wasn't stop (just closed it). When I opened it there was nothing on the screen and the battery is not empty (processor still does some things). Anyone know how I can fix this problem?

    Thank you

    Easy...
    PowerManagement is weaker and less stable features on any laptop. (especially with the defective batteries).
    NEVER try to count on the home screen etc. It will work time 999 and 1000 it don't.
    Now, you're done with a laptop computer hanging.
    The ways:
    1. the easy way:
    -push the power button and keep your finger on it for 10 seconds. (5 is enough, 10 to be sure)
    -remove the battery
    -plugin powercable
    -push the powerbutton

    2. the less gentle way:
    -remove the power cable
    -Remove the battery
    -wait 24 hours
    -Insert the power cable
    -push the power button

    3. the hard way: make sure THAT YOUR HARD DISK IS NOT PASSWORD PROTECTED, to OTHER YOU LOOSE YOUR DATA.
    trying to understand hat is the startup key sequence to reset the BIOS at startup. (it should be described in your manual somewhere)

    4. the hardest way:! ONLY BY A PROFESSIONAL!
    IF MAKE SURE THAT YOUR DISK IS NOT PROTECTED BY WORD, OTHERWISE YOU LOSE YOUR DATA.
    The laptop must be open and all batteries must be removed. All the capacitors must be emptied (leaving a laptop without the battery for 72 h). Then turn on
    the laptop.

    Please note that I can't be held responsible for any damage or loss of data under any circumstances.

  • Address for new tabs bar loses focus after you type the first character

    All new tab to open switches focus to the bar address (which I do), but as soon as a beginning by typing, I can get more than 3 or 4 characters before it loses focus, and no other keys are entered.

    I have a load of search keyword set up, rather than using the separate search bar, so I can't for example, quickly hit Cmd + T to bring up a new tab and then type "im [keyword]" to search Google Images directly.

    The problem is now that I can get the first letter, perhaps the first, but cant type anything else because the address bar loses focus.

    This has happened

    Each time Firefox opened

    == 3.6.4 unknown, downloaded to test, he did for the first time since the installation.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

  • Missing database after closing the App

    One after the other, I recently doing listviews to my SQL database, but I had a problem. When I close the application and reopen it, some of the databases have disappeared. Here is the picture:

    Before closing the application:

    After the closing of the app and relaunch:

    What makes that happen, and what is the solution for this problem? Any help would be appreciated.

    Thank you.

    problem solved, it is just because of variable conflicts in the service of loading, thank you

  • Satellite L500 - external screen display after closing the lid?

    Hello
    I use the Satellite L500 - 120 Notebook, and before installing Windows 7, the laptop has a function very uncomfortable, when I applied an external display.
    When I closed the lid of my laptop, Office was shown on my display (with the native resolution of the external display) external, so I had not to
    change anything on the control panel. In Windows 7, Miss me this feature. I already tried to use the Control Panel, but there is no parameters, which fits
    with the previous ones. I can duplicate the screen in order to see my desktop screen on my external screen, but with the resolution of 1366 x 768 laptop.
    If I extend the views, then there is only the background image to the external screen, but this time with the native resolution.

    So my question is, how to conifgure Windows to recognize that I closed the lid, and the screen should be shown on my external screen?
    Or should I install applications Toshiba, that I had before, who visited account this function?

    Thanks for any help!

    Hello

    I m not a Windows 7 user because I want to wait until it will be released official, but I hope that I can help you a bit:

    First of all in power management, you can choose the action that happens if you close the lid (g. e. sleep, close, etc.). This action must be disabled because otherwise the laptop shuts down or something else.

    So I think that you need to install the display driver for your laptop. You can try the Vista driver because most of them are working on Windows 7.
    Then you should be able to define the correct screen resolution for external monitor.

    A working display driver is important to the clone or extends monitors to verify this!

  • Detect when a NavigationPane or a Page Gets the focus (after closing leaves) in QML

    Hello world

    Is there a way of QML to detect when a NavigationPane {} (or a {Page} it) Gets the focus?  At the close of a sheet, I want to call a function within this NavigationPane (which is a separate QML file).  After reviewing the documentation, I saw nothing...

    Thank you!

    Too bad.  Leaf has a slot of onClosed I can use.

Maybe you are looking for