Get the same return of the browser at the request

Hi, I'm using

BrowserSession.showBrowser)

to access a browser of my application (I wanted to integrate the browser in my app, but since I am compiling for pre 5.0 devices, I can't use the new browser.field2, but only the browser.field not so very awesome API).

It is - I want to make something once the user returns to the application from the browser. Is it possible to somehow get this event? (Once the user presses the back key, it returns to my request from the browser).

I want to differentiate this event of any other event of first plan-background.

Thank you

Dan

Here's a way to do it:

  1. In your subclass UiApplication, declare an executable field (let's call it "pending").
  2. Just before calling BrowserSession.showBrowser (), the value until an executable you want to run on back.
  3. Back in your subclass UiApplication, override the activate():

    public void activate() {    if (pending != null) {        invokeLater(pending);        pending = null;    }}
    

    With the help of invokeLater is not really necessary because activate() is called on the event thread. However, I would suggest using it when even just to be sure that the executable is run after all the other events that may be pending.

Tags: BlackBerry Developers

Similar Questions

  • How to get the requested catalog of the same element status request workflow vRO 7 periodically?

    Hi all

    I design a WF in vRO7.

    I asked for a catalog item in the WF (to perform a pre-defined a BP published) in vRA 7.0.

    Here is the sample code snippet. Here the element is of type VCACCAFE:Catalogitem

    //********************************************

    var form = vCACCAFERequestsHelper.getRequestFormForCatalogItem (item);

    var request = vCACCAFERequestsHelper.requestCatalogItem (item, form);

    //******************************************

    I am able to process this request successfully. But now, I would like to check the status of this application periodically depending on the State of the application, I want to update a field in VRO and same WF.

    Now my question is, how can I recover the status of the catalog item query after periodically (say 5 minutes interval)?

    Can I use the method below, but thing is that how can I get the same request after 5 minutes?

    request.getExecutionStatus () .value ();

    Can you please help me out is it possible to get the details of the application even with the id of the request after 5 / x minutes?

    Thank you

    Miloud

    Hello

    You can do the following

    Mark your vRO like this query objects after the presentation

    Server.setCustomProperty(request, "CHECK_LATER", "1");
    

    Then place this code in a separate workflow on a calendar for every 5 minutes

    var watchedRequests = Server.getObjectsWithCustomPropertyKey("CHECK_LATER");
    
    for each(var request in watchedRequests)
    {
         // you can access the request submission content here
         var lMap = request.getRequestData();
         // the map is a vCACCAFELiteralMap but it has all VM property and CustomProperty values in it
         //e.g.
         var hostname = lMap.get("provider-Hostname").value;
    
         // assess request state and take appropriate actions here
    
         // remove the tag to avoid duplicate notifications
         // ONLY do for requests in a terminal state though!
         if(!inProgress)
         {
              Server.removeCustomProperty(request, "CHECK_LATER");
         }
    }
    

    Hope this helps

  • You can get the requested operation of SOAP ResultEvent?

    First of all, sorry if this is posted in the wrong place, I was not sure where can I ask for really.

    Basically I have a WebService object that I call many different operations, but each one is managed by the same function, onResult(event:ResultEvent)

    Is there a nice/recommended way to get the operation that have been requested in this event? So, for example, I could make switch (event.operation)

    Currently, I do this by e.token.message.getSOAPAction () and he works on operations there, but this seems quite a hacky solution, that's why I was wondering if there was a way recommended to do?

    Thank you
    Jason

    You can move the result handler of the web service to each operation and
    Create different managers:





    Or, you can make use of the completed asynchronous Token (ACT) model and
    Decorate the AsyncToken that is returned when you call the operation:

    Import mx.rpc.AsyncToken;

    ...

    var token: AsyncToken = ws.getSomething ();
    token.myOperation = "getSomething";

    ...

    private void getSomethingResult(event:ResultEvent):void
    {
    If (event.token.myOperation is "getSomething")
    {

    }
    on the other
    ...
    }

    Or, if you need speakers level invocation, even for the same operation,
    You can add a responder to the token itself...

    Import mx.rpc.AsyncToken;
    Import mx.rpc.IResponder;
    Import mx.rpc.Responder;
    ...

    var token: AsyncToken = ws.getSomething ();
    var responder: IResponder = new responder (handleSpecialResult, handleSpecialFault);
    token.addResponder ();

    private void handleSpecialFault(event:FaultEvent):void
    {
    ...
    }

    private void handleSpecialResult(event:ResultEvent):void
    {
    You can also prevent the default operating at the level or level of service
    managers receive this event
    Event.preventDefault ();
    ...
    }

    Hello lagunajc,

    > First of all, sorry if this is posted in the wrong place, I was not
    > quite sure where can I ask for really.
    >
    > Basically I have an object, WebService, I called several different
    > operations on, but each one is managed by the same function.
    > onResult(event:ResultEvent)
    >
    > Is it possible to get the operation that was nice/recommended
    > asked this event? So, for example, I could do
    > switch (event.operation)
    >
    > Currently, I do this by e.token.message.getSOAPAction () and
    > He works out of exploitation here, but this seems quite a hacky
    > solution, that's why I was wondering if there was a recommended way
    > to do?
    >
    > Thank you
    > Jason

  • During the installation of software, get "the requested operation requires a rise."

    In preparing for the installation of new software CD, I clicked on 'Install now' and received the following error message: "the elevation of requies requested operation.  I never saw it before and have no idea what it means.  Everyone?

    Right-click on the setup.exe > run as admin.

    http://www.mydigitallife.info/2007/02/17/how-to-open-elevated-command-prompt-with-administrator-privileges-in-Windows-Vista/

    And read the information above about this.

    See you soon.

    Mick Murphy - Microsoft partner

  • photos has not been loaded for weeks (usually the browser chrome on PC windows at work).  I tried now on some other computers and get the same error message and I report every time.  can I do or just wait for someone to fix it

    photos has not been loaded for weeks (usually the browser chrome on PC windows at work).  I tried now on some other computers and get the same error message and I report every time.  is there anything I can do or just wait for someone to fix it?

    If you want any help here, you'll have to tell us what the error message.

    Which report you errors to?

  • I get the same updates for windows, it seems to download and install properly but then next day return.

    I get the same updates for windows, it seems to download and install properly but then next day return.

    Hi Graxx101,

    ·         Did you do changes on the computer before the show?

    ·         The updates are installed successfully?

    Follow the steps in the article.

    Windows Update or Microsoft Update repeatedly offers the same update

  • I get the context menu after using firfox as my browser: Exc in ev handl: error: Bad NPObject as private data!

    In the last few days I've been doing the following popup when I use firefox as my browser: Exc in ev handl: error: Bad NPObject as private data!

    I guess it comes from your last update. I have windows vista with a 64-bit processor, and I use the latest version of firefox. I checked to see if I was getting the same error message with explore and I'm not. It seems to be some sort of conflict with java script. This can be corrected?

    You have to remove and re - install anything. I had the same problem and simply disabled the McAfee Siteadvisor module without deleting. I then restarted Firefox and the problem was solved.

    But here's the important part: I reactivated the add-on and then restarted Firefox twice. The problem is not returned!

    Just so disable, reboot, re-enable and restart. It worked for me!

  • I get the same message: a script on this page may be busy, or it may have stopped responding

    Since a couple of days I get the same error message: "a script on this page may be busy, or it may have stopped responding." You can stop the script now, open the script in the debugger, or let the script continue. »

    I'm not a COMPUTER expert, however, I have read similar online messages and tried many steps such as:
    --deleting history navigation and cookies
    -Mozilla resetting to the factory settings
    -Uninstall and reinstall Mozilla

    Unfortunately, the problem is always the same. What can I do? I work from home and need internet to work 100%.

    Moreover, the navigation works fine in other browsers, but not Mozilla.

    Thank you

    This script is the culprit in the following message?

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    Script: resource://gre/modules/addons/XPIProvider.jsm-> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/extensions/%7B82AF8DCA-6DE9-405D-BD5E-43525BDAD38A%7D.xpi!/bootstrap.js-> resource://gre/modules/commonjs/toolkit/loader.js-> resource://gre/modules/commonjs/sdk/loader/sandbox.js-> resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/jquery-2.1.0.min.js:28

  • If Firefox is set as the default browser and any application tries to open a new window, it doesn't work and I get the error "Firefox is already in running... »

    Here's what I'm running:
    Microsoft Windows 7 Service Pack 1, fully updated to 04/10/2012
    New installation of Firefox 11. No add-on enabled following troubleshooting.
    I am a user has administrator rights
    SAMU is disabled.

    For starters, this has happened since Firefox 10 or more. A couple of months now.

    I am able to open Firefox. My modules worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, extension of 4chan) had no problem. Firefox is defined and has been fixed for the past two years as my default browser.

    But since about 10 or so, maybe Firefox before, if I opened a session of Firefox and any other application attempts to open a session in a new window, I get the Firefox is already running but not responding do not error. »

    I tried to follow the advice of already posted troubleshooting (glance to parent.lock files left [no date], several sessionstore.js [no date] files, create a new user profile, has tried to erase the 'read only' permission in windows 7, but as soon as it is cleared, only read permission back.)

    As a last resort, I deleted the Firefox folder, the directory %APPDATA%/Mozilla in its entirety and then used CCleaner to remove all references to Firefox in the windows registry, and then made a complete re - install, without extensions installed right now.

    I checked the preferences and have the option "open new windows in a new tab" checked. The problem persists without worrying if this option is checked or not. This problem persists in or out of safe mode, even with the new facility.

    Test case:

    All cases:
    Firefox is selected as the default browser for windows 7

    Case 1: Log in to firefox. Use any other program that is trying to open a link to their Web site in a new window browser or the new browser session. "Firefox is already running" error

    Case 2: Open a firefox session. Right click on Firefox in the taskbar. Select 'open in new window '. "Firefox is already running" error

    Case 3: Open a session of firefox. Select the Firefox Menu > new tab > new window. In fact, a new window opens.

    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.
    

    Make sure that you do not start Firefox with the - No.-remote switch or have defined the MOZ_NO_REMOTE = 1 environment variable (Control Panel > system > advanced > environment variables).

  • I can't get the tabs of the previous session of the return when I reopen it Firefox. The header of the window, or 'Quit' in the file Menu using 'Close' of Firefox not working. Note that "Restoration of previous Session" on my Menu history is grayed out so

    Question
    I can't get the tabs of the previous session of the return when I reopen it Firefox. I tried closing with 'Close' header of Firefox window, but also 'Quit' in the file Menu. Note that "Restoration of previous Session" on my Menu history is grayed out so I can't use it. In addition, there is no tab at the top of my window to open Firefox Firefox - only a menu bar that shows "File", "Edit", "View", "History", "Favorites", "Tools" and "Help". I am running Windows 7 Home Professional and Firefox 4.01

    "I can't do the tabs from the previous session of the return when I reopen it Firefox.

    Remember that you are not private browsing or they are in permanent private browsing mode. See: https://support.mozilla.com/en-US/kb/Private%20Browsing (2nd and 3rd options menu on this page)

    Make sure that you are not clearing history during a session or when Firefox is closed. See:

    • Clear recent history: https://support.mozilla.com/en-US/kb/Clear%20Recent%20History
    • Clear history of Firefox closing: uncheck 'Clear history of Firefox closing' options > Privacy panel (the first item under "History" on this Panel should be set on "Firefox will be: use the custom settings for history" to see that point to uncheck)

    "There is no Firefox tab at the top of my Firefox window open - only a menu bar.

    The Firefox button is supposed to be on by default in Vista and Windows 7.

    In Firefox 4, you have the choice of using the Firefox (orange or grey) button in the upper left or the menu bar (File, Edit, View, history, Favorites, tools.) Help).

    • The selections on the Firefox button are distinguished by the menu bar options.
    • You can easily switch between the Menu bar and the Firefox button or leave one or the other active.
    • One used depends on if the Menu bar is enabled
      • Bar menu checked = Bar Menu on, Firefox off button
      • Bar menu unchecked = Menu Bar off, Firefox button on

    When the Firefox button appears and you want to temporarily view and use the menu bar, press ALT or F10 displays the menu bar and you can make your selections in the Menu bar displayed temporarily.

    To check (or uncheck) the menu bar, do one of the following:

    • using the Firefox button: click on the Firefox button > Options > Menu bar
    • using the Menu bar: click on view > toolbars > Menu bar
    • Hold DOWN the ALT key while pressing the VTM keyboard letters
  • the old version would save the tabs when closing, how can I get the new version to do the same thing?

    the previous version would ask something like "save the file" when I would close firefox. as I use different tabs, it is a very useful feature for me. I want to get this same functionality on the new version, if I want to know how to go back to the old version.

    Thank you

    Firefox stores now always the old session, and you can access it by going to the history menu and selecting "restore previous Session."

    If you want Firefox to display the message to save the session, it can be turned on again by changing some preferences.

    1. Type of topic: config in the address bar and press on enter
    2. Accept the warning message that appears, you will be taken to a list of preferences
    3. Find browser.tabs.warnOnClosepreference, if its value is set to false, double-click on it to change its value to true
    4. Repeat this for 3 preferences browser.warnOnQuit, the browser.warnOnRestart and the browser.showQuitWarning

    If you always open the last set of tabs, another approach is the following:

    1. Click on the orange button Firefox, then select options to open the options window
    2. Go to the general Panel
    3. Change the setting "When Firefox starts" to "show my windows and tabs from last time '.
  • Whenever I start my computer with Windows XP, I get the message "it is necessary to restart your computer. If I select 'YES', the system restarts and I get the same message.

    Original title: "RESTART YOUR COMPUTER IS REQUIRED" MESSAGE LOOP

    Whenever I start my computer with Windows XP, I get the message "it is necessary to restart your computer.  If I select 'YES', the system restarts and I get the same message.  Always shut up if I keep you select 'YES '.  I can work around the problem by choosing 'NO '.  How can I avoid that this message that appears constantly when I start the computer?

    http://forums.techarena.in/Windows-Update/1095335.htm

    read the above and follow the tips on adobe updater and maybe this will help.

    If this is not the case after return and include information about your machine, svc pk and IE #.

  • How to get the session from the browser without hestory

    I want to play a movie in my application using streaming.

    So, I use the rtsp url and call a browser from my application that opens the movie in media player perfactly

    But if I click on the "back" button it opens the previous search for a website by the user.

    I used the code to get the browser as session
    Private private = Browser.getDefaultSession ();

    browserSession.displayPage ('file:///SDCard/Data/"+fileName);
    browserSession.showBrowser ();

    How can I get a browser session so that it doesn't show the previous websites of the user and it return back to my request.

    Please healp me to find the solution.

    Thank you very much I am able to run the movie to sdcard in field browser now.

  • I'm in the Mexico and can browse the web but cannot get the roadrunner site to open the webmail server to allow access to e-mail.

    I'm in the Mexico and can browse the web but cannot get the roadrunner site to open the webmail server to allow access to e-mail. I worked around it through another proxy server, but navigation is a pain. does anyone know a solution to this problem? Roadrunner denies that it doesn't clog and so did the modem service here which is telmex?

    [moved]

    I had the same problem 2 weeks while in the Mexico.  I contacted the support TWC and the person to whom I spoke said he had to unlock something.  When he did, all my mail came in Outlook in the spam folder.  It was OK because I got my mail.

    I moved to a different House and now have the same problem again.  I've contacted support TWC and not had much luck. The second level support person and I spent more than an hour, the call of the Mexico using Vontage.  He has not found anything by the previous call that guided him by setting this time.  He said that he would open a ticket and call me in the next 24 to 48 hours.

    Is it reminds and solves the problem, I'll post how it was corrected.

    Amigos audio!

  • How do I get the browser permission to set the current location

    I had this problem before, and it's why I keep getting of Richardson, Tx. and sometimes even close to cities.  Most of the time my position shows Richardson, Tx. and when I try to detect my location I get the browser refused permission for the current location warning box.

    I tried my solutions I have found on the internet, and none of them don't keep my sheet set, even after he declares that it is set. How can I get the permission of the browser set my current position (Jackson, TN)?

    A lot of time, the sites asking that your location will try to determine based on your IP address, which may return strange results if your Internet connection performs the routing in other places.

    You can make sure that this check box is disabled, as shown in this picture of eightforums:

    But you can also set the default location to use, here:

  • I get the same error message and cannot open a PDF file

    I have a link to an application that I am trying to download and complete. By default the link my browser to open. what he does normally. However, this document was a mistake. He said that I need the latest version of Adobe. So I downloaded the application, open the PDF file in the app and get the same error message. Help!

    Hello

    You see the following error message when you open the PDF document?

    If so, it is a special type of PDF created with Adobe LiveCycle Designer form called "Dynamic XFA".

    Acrobat Reader mobile apps (for iOS, Android, Windows Phone) do not support XFA forms.

    Please download the PDF document on your Windows or Mac computer and open it with Acrobat Reader DC desktop version.

    Please let us know if you have a different problem.

    Sorry for the inconvenience.

Maybe you are looking for

  • All of a sudden Thunderbird is different without any explanation, and nothing works.

    I opened my email today and it opens to a strange page with lots of options instead of just open in my Inbox. I try to click on "read mail" or "Inbox" and nothing happens. The small circle just runs and runs. What in the world is happening? If you ha

  • E-mail woes! IMAP and Mail.app

    I just upgraded to a new computer with 10.8.5 installed (that's as far as going to 10.8). Seems that Comcast now requires us to use the IMAP system, which is horrible, because it creates all kinds of unwanted records, he spits in your Mail.app (CAT?

  • How to set up my old iPad with the content of my husband's iPad

    I give my husband my old ipad to replace its older iPad. I have reset my old iPad to factory settings and then save the sound an old man to iTunes on my MacBook and then synchronize my old iPad than upward?

  • I can't access my wireless router admin page...

    Hello! I have a wireless router from CD - R King (a local router brand not known worldwide). Before, I can access my router admin page wireless very well using firefox, but now he will just say 705 unable to connect to the server. However, I can stil

  • Click on an application and sometimes restarting the computer

    I just bought a mac 2nd hand and by the title of this post it sometimes restarts the computer, however this is most frequent during the first 20 minutes of switching on the mac, after that it seems pretty stable. I'm on a processor I7, Macbook pro ru