which method is called when the screen has lost focus but stays on blackberry?

Hello

I want to know in which method is called when the screen has lost focus, but always visible BlackBerry?

For example, a screen is in the foreground and we disply dialog box so that the screen is visible but not to focus, therefore, at this time that methos called when we close this dialog box?

Please, help me please please

Override the following methods in your class to screen according to your needs

1. when the screen button to the stack

Call

onDisplay() or

onUiEngineAttached(boolean attached) - so attached is true then your screen is at the top of the screen

2. When you are in a backlight and the lcd screen turns off to your state of rest and turns on again when you actively use this form

call

onVisibilityChange(boolean visible) - if visible is set to true, then you get the focus when the lcd display turns

3. when your application moves to the background by clicking the red end button (i.e. without quiting the app, yet yours is active in the background)

call

onExposed() - when your application comes to the foreground of the background or during any type of screen that is in the top get popped

& call

onObscured() - when your application moves to the background, or when a screen pushed above your current screen more

Tags: BlackBerry Developers

Similar Questions

  • Cannot answer calls when the screen is active

    When my screen is active and someone calls, I see the floating bar at the top of my screen with drop or answer displayed. By pressing or the other option has no effect. In the case of lucky and keep tapping answer it could possibly answer the call, but most of the time the person hangs up before he does.

    Start in safe mode and try to answer it.

  • Need for a method to be called when the pop-up screen

    Hello

    I have a requirement in my application. I have a screen from which I'm moving to screen B. When I Pop the screen B, I need a method that must be called in the screen has. Looks same as onActivityResult() in Android.

    I am currently using onExpose(). But this method is called for all in the screen has. In the menu click or button also. Is there another way to do this?

    Help, please...

    You have two options I can think immediately, which do not have to change anything in screen B.

    (1) use pushModal when you call B screen.  The statement immediately after the pushModal will be executed as soon as B screen is popped.  In general, I try to avoid the modal screens, but in this case, it's probably what I would do.

    (2) set an indicator immediately before you tap screen B.  Test the flag in onExposed().  If the flag is not set, then the onExposed was called for another reason and you can ignore it.  If the flag is set, then turn him off and process you want, knowing that the screen that has been exposed as screen B jumped.

    Either should work for you.

  • cannot answer phone when the screen goes black

    I have the PE. I also have the unchecked box that says to finish the call with press the button (when the screen times out). How can I answer a call once the screen has expired without pressing a button that ends the call?


  • Detect when the screen goes black (standby mode)

    Is there a way to do this?  OnObscured does not seem to be called, that makes sense.  I couldn't find anything on the forums about this.

    Thank you.

    Thank you guys.  In fact, I realized that onVisibilityChange is what I'm looking for.  It is called when the screen goes black and when the screen is popped.

  • Default method of workflow activity is not called when the Page refreshes

    Basically, try to call a script function java front page of fragments of the charges.

    INSTALLATION PROGRAM:

    Jdev 12 c

    TF defined with a default activity that invokes a page fragment.

    The activity of default method calls a method to support bean which inturn calls the method init java script before the fragment on the page doesn't load.

    This TF is in a container jsf page.

    During the loading of the page containing the first activity of the method is called and js function triggers and then fragments of charges which is the desired behavior.

    PROBLEM:

    When I refresh the page by pressing F5 or by running the page again on the same window of the browser activity method default IS NOT gets called which inturn will not trigger the js call.

    But when I run the same page again in a different window it works and then subsequent updates or page load activity IS NOT of default method is called.

    If it is not provided? The default activity is called when the workflow is updated.

    Check outhttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf which should work also in your car.

    Timo

  • Bluetooth freezes when the screen turns off

    Having a problem with the Bluetooth on my pre. I coupled it with a Plantronics Voyager 855. Initial pairing works very well, but after the screen on the pre turns off, the connection goes bad. When I turn the screen back on, the Bluetooth application on the phone always displays the connected headset, but it is not. If I try to play music, there is no sound, and if a call comes in, I can hear the person on the phone, and not on the helmet.

    About 30-45 seconds after the screen turns off, I hear the high tone of the headset which means that it has lost connection. I don't think that the headset is bad. It worked very well with my previous phone.

    If I have music when the screen turns off, the connection is very good. It's like, when there is no active communication between the phone and the headset, and the screen turns off, the bluetooth on the phone goes into a blocked State. I can restore the connection by turning off bluetooth on the phone and then on again. It reconnects to the helmet, until the next time the screen turns off.

    I tried this to get a better idea of the problem...

    If I remove helmet > disable bluetooth phone > turn on bluetooth on the phone > put the headset in pairing mode, it pairs fine.

    If I remove helmet > disable bluetooth phone > turn on bluetooth on the phone > turn off the screen > wait 45 sec > turn on the screen > put the headset in pairing mode, then it does not.

    Again, it is like turning off the screen causes the bluetooth of the phone hang. Given that the screen turns off fairly quickly, I basically disable bluetooth phone and back on every time I want to use it.

    Any thoughts?

    My problem is solved.  Turns out that I had a defective unit.  He traded last night, and it works fine now.  Got the yellow box this time.  First of all, we had the black cover.

    The swap was a little complicated.  I bought in a store of absolute Wireless in Garner, North Carolina.  It is a reseller of third party.  They did it to a Sprint service center to have a technician "certify" the default before they would replace it by car through the city.  And of course, the service center couldn't do the replacement, so I had to go back through the city to the point of purchase after they certified it.  Best of all, the procedure of "certification" involved explaining the problem to the technician for about a minute, she agreed with me that it was malfunctioned and his writing his employee with the ID on the back of a business card to bring back me to the first shop.  She has not yet turn the phone on itself.  She said pretty much the guy to the absolute Wireless has been a * beep * by sending me to it in the first place b/c, we could just do this by phone.  PITA BREAD.  But I suppose it is, that's what I to do not buy directly from Sprint.

  • BlackBerry 10 Z10 freezes during call if the screen is pinched or zoomed

    I applied the update to the software BB Z10 (10.2.0.424).  Since the update, a new problem appeared which is serious enough that I now plan to roll back the update.  Obviously, however, I want to avoid if possible the rollback.

    During a phone call, if the screen is 'stuck' or 'zoom' or generally offered by those applying the finger across the screen, the screen then freezes.  The phone call (not continue), but no touchscreen function can be used, and therefore the appeal cannot be done, the keyboard cannot be used, etc.  Sometimes just the skin on my face, touch the screen of the phone is enough to cause problems, but more often it is when I try to press the button end on the screen (and inadvertently move the screen when you press the button).

    Once the frost has occurred, the only way to end the phone call (and effectively address freezing of the screen) is a soft reboot by holding down the power button.  To indicate what is obvious, it is very irritating, especially given the time of long reboot of the Z10.

    I did some research on Google and the search for keywords related to my question without a bit of luck and surprised not to be able to find no matter what other people discuss this issue or is it just me? ! ? ! ?  I tried to reset the device and prefer not not for all the usual reasons.

    Appreciate any help/pointers that anyone can offer.

    If you have a similar problem and have stumbled across this forum announcement, I can now report the cause and the fix for this 'problem '. In my BlackBerry settings for accessibility, the function named Mode magnify was lit to. I must have turned on that when you play with my phone during installation (seemed like a good idea at the time). Completely turn off the Mode magnify has solved the problem. Luckily I don't have a disability, but might seek to improve this function for people with disabilities with magnify Mode activated BlackBerry do not know the problems I have with the device of freezing because (inadvertently) expand during phone calls.

  • Pre Bluetooth crashes when the screen turns off

    Having a problem with the Bluetooth on my pre. I coupled it with a Plantronics Voyager 855. Initial pairing works very well, but after the screen on the pre turns off, the connection goes bad. When I turn the screen back on, the Bluetooth application on the phone always displays the connected headset, but it is not. If I try to play music, there is no sound, and if a call comes in, I can hear the person on the phone, and not on the helmet.

    About 30-45 seconds after the screen turns off, I hear the high tone of the headset which means that it has lost connection.

    I don't think that the headset is bad. It worked very well with my previous phone.

    If I have music when the screen turns off, the connection is very good.

    It's like, when there is no active communication between the phone and the headset, and the screen turns off, the bluetooth on the phone goes into a blocked State.

    I can restore the connection by turning off bluetooth on the phone and then on again. It reconnects to the helmet, until the next time the screen turns off.

    I tried this to get a better idea of the problem...

    If I remove helmet > disable bluetooth phone > turn on bluetooth on the phone > put the headset in pairing mode, it pairs fine.

    If I remove helmet > disable bluetooth phone > turn on bluetooth on the phone > turn off the screen > wait 45 sec > turn on the screen > put the headset in pairing mode, then it does not. Again, it is like turning off the screen causes the bluetooth of the phone hang.

    Given that the screen turns off fairly quickly, I basically disable bluetooth phone and back on every time I want to use it.

    Any thoughts?

    My problem is solved.  Turns out that I had a defective unit.  He traded last night, and it works fine now.  Got the yellow box this time.  First of all, we had the black cover.

    The swap was a little complicated.  I bought in a store of absolute Wireless in Garner, North Carolina.  It is a reseller of third party.  They did it to a Sprint service center to have a technician "certify" the default before they would replace it by car through the city.  And of course, the service center couldn't do the replacement, so I had to go back through the city to the point of purchase after they certified it.  Best of all, the procedure of "certification" involved explaining the problem to the technician for about a minute, she agreed with me that it was malfunctioned and his writing his employee with the ID on the back of a business card to bring back me to the first shop.  She has not yet turn the phone on itself.  She said pretty much the guy to the absolute Wireless has been a * beep * by sending me to it in the first place b/c, we could just do this by phone.  PITA BREAD.  But I suppose it is, that's what I to do not buy directly from Sprint.

  • U2715H - Windows automatically resized when the screen turns off then turn it back on

    • Windows 8.1 Pro
    • 1 single monitor connected to the PC
    • native resolution 2650 x 1440 at 60 Hz the value
    • through CDM of the monitor to the RFP the ti EVGA 750 SC (cable Dell)
    • all drivers updated on 28/12/15

    I just bought this monitor and I noticed this strange behavior. Whenever I have turn off the monitor (or it will turn off by itself), if I didn't have a maximized window, all windows (regardless of size) gets automatically resized to fit in the left upper quadrant when the screen turns back on again.  If I had something full screen, this behavior does not occur.

    I find this very annoying. This behavior happened with my previous monitor, which was only 1080 x 1200.

    I was unable to find any setting for the U2715H disable this "feature". This isn't because EasyArrange from Dell. I do not use this feature. And this always happens with Display Manager not installed.

    Is it just a 'feature' of Dell U2715H? Is responsible for Windows? Help, please.

    TIA

    There was no pilot or changes to the hardware of my first post.  BTW, my monitor is a Rev A02.

    A few days after my previous message, another question emerged.  Monitor flash intermittently ON / OFF every few seconds.  I unplugged/replugged the cable CDM - DP and that seems to fix things... until the next day.  This time, I nothing could fix the random rotation power SWITCH of the monitor.  Desperate, I decided to plug an old HDMI cable, I had to hang out.  Flashing problem has been resolved.  Not only this, using HDMI solved my original problem of auto resizing windows.

    The solution to my original problem: use an HDMI cable.  I went to the Dell CDM - DP cable and the problem has been resolved; no more windows resize automatically when the monitor turns off in sleep/towers.  I always get the native resolution at 60 Hz and there is no noticeable disadvantages to the use of the HDMI versus DP interface.  I've been using the HDMI cable for about a week and there is no other issue.

    Just for additional verification, I bought an Accell UltraAV DP - DP 1.2 cable (B142C-007 b-2), one of the few officially approved by VESA (see link below).  Using this cable does NOT my automatic window resizing problem original.  I do not use it long enough to see if they would prevent the random flashing question.

    I still don't know the exact cause of my original question.  I guess it's a driver problem with DisplayPort standard.  But if you do not need DP 1.2 functionality, I suggest that you just use your GPU HDMI output (if she has a).

    www.DisplayPort.org/.../How-to-Choose-a-DisplayPort-Cable-and-not-get-a-Bad-One

  • App background stops when the screen turns off

    I wrote an Android app with a Service that receives events from the LocationService and the accelerometer and always try now to wear 10 BlackBerry. Tests on a Z10 STL100-2 10.1.0.4181

    Once the unit has remained unchanged for some time, the location listener is not registered, in order to save energy, and re-recorded a trip again.

    Don't worry, this can be disabled via the visible activity. But it must continue with the last State (start/stop) after the reboot.

    I even magically figured out how to add additional permissions for the manifest of BAR: "_sys_android_autostart_service" and "run_when_backgrounded".

    But as soon as the screen turns off, my application stops working. No location or accelerometer case being received. Turn on the display again, everything back to normal.

    It is meant to be a question about the accelerometer, but I could not find in the tracker.

    So my questions are:

    -Is it possible to port Android continue to receive events location when the screen is off?

    -Is it possible to port Android continue to receive events of accelerometer when the screen is off?

    -Will my service to continue to operate if more than 8 Apps began after mine? (And the user did not hit the close button)

    -The "headless" 10.2 mode help? (I currently only test with 10.1, because my service provider has not yet unlocked 10.2)

    -Finally, this would be possible with a native application? (I could port the port iOS... lots of fun...)

    Thank you very much for your help!

    PS: If it's of any interest: I use the plugin V1.6.1 Eclipse/ADT to package and install the bar.

    As reported here as well (and I'm sure in other places)

    http://supportforums.BlackBerry.com/T5/Android-runtime-development/accelerometer-turns-off-when-Scre...

    I'm working on a deal in the next version, similar to what we're doing with location requests (in other words, activate us the background mode if your app acquires a partial wake lock).

    Edit:

    So my questions are:

    -Is it possible to port Android continue to receive events location when the screen is off?

    (Yes, but you must hold a wake lock).

    -Is it possible to port Android continue to receive events of accelerometer when the screen is off?

    (For the moment, no, but I'll change that, so it behaves like location.)  Mind you, this could be used to work on old revisions of the software until the native sensors team added a background of sensor mode which is disabled by default and must be explicitly enabled).

    -Will my service to continue to operate if more than 8 Apps began after mine? (And the user did not hit the close button)

    (There are a lot of thing that matters if your Services happens to run or not, which is not limited to, but includes the number of applications already running and the status of the device memory).

    -The "headless" 10.2 mode help? (I currently only test with 10.1, because my service provider has not yet unlocked 10.2)

    (No, it's a native thing.  Your application is already technically without head)

  • Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizont

    Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
    Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?

    This has happened

    Just once or twice

    == I'm compiling an email in Hotmail Live

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • Satellite A60-122 - does boot and the screen has lines on it

    Hello!

    I have a Toshiba A60-122 PSA60E model. Pentium 4 HT. 1 GB of memory, 80 GB hard drive. BIOS 1.7.

    The problem is that it hangs on until the Windows XP logo appears, then the choice of Windows is displayed, I try safe mode, but does not work either.
    And then decided to have a specific format but still the same problem, and even the recovery CD does not either.
    I noticed that the screen has lines on the subject. Toshiba Logo appear when booting, you can see the columns of the row.

    Can someone help with my problem? Any idea?
    And by the way, I want to update my bios to 1.9, but the problem is that I can't find the traditional BIOS update on initialize to top.

    Thank you.

    Do you have these lines of the screen on an external monitor too or only on the screen LCD internal?
    It sounds like a hardware problem, but if you can determine if it s a LCD or motherboard problem. Check it!

    And by the way, what do you mean if you say that it doesn't work? You can see something on the screen and you get a BSOD?

    Maybe the problem is with the motherboard or HARD drive. You can test the HARD drive by using the Drive Fitness Test (Google is your friend).

  • Satellite L15 the screen has a red/pink tint

    When I turn on my toshiba Satellite L15 the screen has a red/pink tint and then 2 minutes later it is fine until the next time I turn on the computer it's screen it self or the inverter?

    Hello

    Not easy to tell if it s screen or FL inverter question.
    FL Inverter control the backlight of the screen and usually if the FL inverter start problems, then you can see photos on the screen as behind a thick fog.
    Then maybe he problem s screen but that's just a guess.

    However, FL inverter is not very expensive, but the laptop screen is one of the expensive laptop parts so I m not sure if it is s to replace the screen and pay 200-300 Euros for the fix

  • the lower part of the screen has a gray as Monica covering the screen

    How can I fix a problem with my laptop screen?

    The upper part of the monitor is nomal and works very well. But the lower part of the screen has a gray as Monica covering the screen. The two sections are divided by a straight line. The laptop in this condition it is difficult to do, because the bottom of the screen is so hard to see. Any help with this condition would be appreciated. The laptop is a Toshiba Satellite L305D-S5868, I can't afford to buy another laptop. Please someone help!

    Hi CliffordKillen,

    What version of Windows have installed you on the laptop?

    When did you notice this problem? If this is a recent problem, follow the steps in this document to restore your computer to an earlier point.

    Follow these steps in this document to start your computer in Mode safe. Safe mode that will start the Basic programs and drivers required to start Windows. If the screen is back to normal in safe mode, it lets us know that the issue is not the base drivers. We can then pass from the computer in a clean boot State. This will let us know if a software conflict is causing the problem.

    If none of these measures, you can contact Toshiba.

Maybe you are looking for