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.

Tags: BlackBerry Developers

Similar Questions

  • 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

  • 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

  • Repeat a call when the line is busy?

    Is it possible to have the phone to repeat a call when the called line is busy? I can't find this simple function.

    You'll need an app for that, look for type of automatic redial of applications such as

    https://play.Google.com/store/apps/details?ID=com.adengappa&hl=en

  • View missed calls when the phone is off?

    Hello

    My phone turned off (or without service) incoming calls do not show on my list of missed calls.

    There may be a voicemail when my phone is back, but no match no missed calls.

    Is there a setting that will show you missed calls when the phone is off?

    Debra

    iPhone 6 s

    Once you turn back on your iPhone, all calls that occurred while the iPhone was off should appear in the Missed Call list.

    If they do not:

    • If you are in your area served by your cellular operator, contact your operator.
    • If you are outside this area (roaming), you can not see the calls until the return.  You could ask your cellular operator on this subject.
  • I have all the Adobe Creative Suite with all the programs installed on my mac, I bought a new mac and go to sell the need for others, but I have to get the programs on the new computer and I also lost the serial number for it, what can I do about it?

    I have all the Adobe Creative Suite with all the programs installed on my mac, I bought a new mac and go to sell the need for others, but I have to get the programs on the new computer and I also lost the serial number for it, what can I do about it?

    Find the serial number of your Adobe product quickly

  • What to do when the required help screens will not accept any existing ID or passwords? 13 download to PC elements missing section archive. Normal help screen will not accept any adobe exisitg D. Whatdo, I do now?

    What to do when the required help screens will not accept exixting ID or password?

    Downloaded items 13 PC. Implementation noted this archive missing article.

    If something is demanding a password is not likely to be a request for Adobe since Adobe does not normally require any.  It could be your computer's security requiring you to allow an installation to occur.

  • XNET Config read to fill in when a certain arbid is received (i.e. return of function call when the msg is received)

    The API XNET-CAN allows to hardware configuration such that a call to read the framework/signal does not return until the message is received (no need to query the buffer, call to the function is as an event... function returns when a message is received) or if a time-out occurs).  I don't really want to query for data, unless I absolutely have to.  My plan is to have parallel code to wait for a specific message to receive and respond (should be very fast!) whil a different loop receives all other executives.

    A time-out of the reading function call would work pretty good, but it doesn't seem to work (see extracts attached).  The value of timeout only seems to work (no error property) is a value of 0 seconds.

    Thank you

    Todd

    Change of a single point of session for a queued session.

  • No way to ignore the call when the phone is "locked."

    I noticed this AM when I call came because I have the ability to "slide to answer." I wanted to send the appeal

    for VM as I can when the phone is not locked.

    -Nancy

    You can do it.  Simply press the power button a times to cut the ring/vibrate and twice more to ignore the call.

  • Receive phone calls when the phone is locked with PIN

    I appreciate the ability to lock my Palm Pre with a PIN, but unlike my Blackberry, it seems that I have to enter my PIN code in order to ANSWER a call.  At the point where I usually do, I have lost the appellant and need to remind them.  Please consider providing the option to allow incoming calls to decide without entering a PIN.

    It is also a very useful feature if you misplace your phone and call to try to locate him.  The finder of the phone cannot currently answer the call, so if they have a good Samaritan they will not be able to help the phone back you.  Even for a friend or relative who could answer the phone for you if you're not nearby.

    Thank you to the option to answer the phone without entering a PIN >

    You don't have to enter your PIN. Just drag the answer out of the circle button.

    I hope they put in option only answer a call after the pin code has been entered.

  • Need HELP loading and unloading SWFs external when the user clicks on the buttons

    Hi everyone, I'm working on a few Web sites at the moment, one for being my online portfolio, as well as my Web site for a product of sleep, that I'm selling.  I have very little experience with AS3, last time I created a Web site that as2 has been used.  I tried a few tutorials online, but nothing performs the work, there is always an error...

    I have an index.swf that loads the default home.swf.   There is also an about.swf, contact.swf, order.swf and testimonials.swf...

    It was a hair pulling 4 days now, not be able to get this working.

    All I need is for the swf external to pull up when you click on the corresponding button, and when the next button is clicked, the current to unload swf and swf to load new file.  It was so simple with AS2, you would think things could be as easy, if not easier.   So any help that all the world can offer, I would be so very you happy for me!  If necessary I can copy my current code, even if it doesn't work!   Thanks, Mike

    var loader: Loader = new Loader();

    addChild (loader);

    home_btn.addEventListener (MouseEvent.Click, loadF);

    about_btn.addEventListener (MouseEvent.Click, loadF);

    contact_btn.addEventListener (MouseEvent.Click, loadF);

    function loadF(e:Event):void {}

    Loader.Load (new URLRequest (e.currentTarget.name.split ("_") [0] + ".swf")); / / assuming that each reference button is also the button's name property

    }

  • Unable to receive calls from Apple Watch, using WIFI AT & T calls, when the iPhone is turned on, turned off or in Airplane Mode.

    I work on this issue and wanted to involve the community.

    I have tests the functionality Apple Watch and have been unable to solve my problems with WIFI call. I use the AT & T and I am connect to the strip of the 5 GHz on my router Xfinity.

    I am able to make/receive calls from my iPad and Mac laptop when iPhone is off / Mode plane; However, this feature does not work on the watch. I can make and receive calls from the watch when the phone is turned on.

    Another problem is that I am not able to send and receive messages (blue or green bubble) of the watch - once again when the phone is turned off or in flight Mode

    I'll copy in 2 portions of the Web site: http://help.apple.com/watch/

    http://help.Apple.com/watch/#/apd0443fb403

    If your Apple Watch is in range of a Wi - Fi network that the iPhone is connected to before, you can always do the following (even if the iPhone is off):

    • Send and receive digital messages Touch
    • Send and receive messages using Messages
    • Make and receive phone calls (if you have active calls, Wi - Fi, and you are within range of a Wi - Fi connected to your iPhone before)
    • Check current weather conditions
    • Track your inventory

    http://help.Apple.com/watch/#/apd2fe746e86

    Make calls via Wi - Fi

    If your cellular operator offers Wi - Fi calls, you can use Apple Watch to make and receive calls over Wi - Fi instead of cellular network - even when your pair iPhone isn't with you or is disabled. Apple Watch comes to be in range of a Wi - Fi network that is connected to your iPhone in the past.

    To see if your carrier offers Wi - Fi calls, see the article Apple Support phone with Wi-Fi calls, then enable the calls on your iPhone and Apple Watch Wi - Fi.

    Note: You can make emergency calls via Wi - Fi, but when possible, use rather iPhone over a cellular connection - your location information will be more specific.

    Enable on iPhone Wi - Fi calls. On iPhone, go to settings > phone and turn on Wi - Fi calling and application to other devices.

    Enable calls on Apple Watch Wi - Fi. Open the Apple Watch app on iPhone, tap My Watch, tap phone, then turn on Wi - Fi calls. If you do not see the parameter, make sure that you have activated calls on iPhone Wi - Fi.

    Answer please if you are able to perform any of these functions! And any troubleshooting you can think!

    AspiringAppleGuru wrote:

    I have... to connect to the 5 GHz on my... router bandwidth.

    Hello

    These features are not available because Apple Watch cannot connect to a network of GHz Wi - Fi 5.

    If your watch is not connected to your iPhone via Bluetooth, but lying in a 2.4 GHz Wi - Fi network your iPhone plugged in before, the watch can connect to this network and you can continue to use certain features, including Wi - Fi calls (when it is supported by your operator, you already have in place).

    More information:

    On Bluetooth and Wi - Fi on Apple Watch - Apple Support

    Use Apple Watch without her sister iPhone - Apple Support

  • Siri doesn't let me make a call when the phone is locked

    Siri doesn't let me make a phone call when my phone is locked. This is not the case with other phones in my family, but I can't find a setting to change. Any ideas?

    iPhone 6 with the latest iOS.

    Found the answer. It's under "Contact ID and password". Select "voice dialing".

  • Ignoring a call when the phone is in standby

    When the phone is in standby and locked (black screen) and a call comes, is it possible to send it directly to your voicemail? All I do is just wait until voicmail picks it up.

    Most of the calls come to me when the phone is locked and that the only choice I have is either to respond or simply wait until that voicemail picks up.

    Is there another way?

    Joe Parsons

    I just hit the power button two times and the call goes directly to the virtual machine.

  • MenuItems run() method that is called from the thread eventdispatching?

    Hello

    is it? I know that MenuItem itself extends thread, but I wonder why this method is called run() and finally and above all it would'nt be worse if this method would be called from a Thread.

    THX

    In fact the menu items are run on the thread of the event. You can see this by creating a menu item long-term. The menu will not close and will not refresh the screen.

Maybe you are looking for

  • multiple message downloads

    Receive more than a download of some large messages

  • Loss of connection with magic mouse bluetooth

    Since the upgrade to El Capitan I keep losing connection bluetooth with my mouse.  Not seem that this happened a lot with upgrade of Yosemite. This is the first time that ever happened and I got it for more than four years now.  Any ideas or am I rig

  • Twist cannot pull up bar charms with touchscreen

    Thus, for some reason any charms bar is no longer comes with the touch screen. It will come out with the mouse and the touch screen seems to work fine otherwise. I calibrated the screen, and I always feel the question. Anyone have any suggestions, or

  • BlackBerry Q10 HTML

    Hello, I need a little help to activate my HTML mail to a q10.  Any help?  Thank you.

  • the id value unique app downloading

    Is there a way to define a unique id using php to the application once downloaded?