How to get out of my web browser application but beginning

Hi all, I have a code that allows me to t odetect if a new version of my application is

available, and I want to show a dialog if it is giving the user the ability to update/upgrade

If they responde Yes. So I'm thinking something like what I have below might work, but its broke. :-(

Object versionFromDb = Db.getVersion();

String versionFromDescriptor =         ApplicationDescriptor.currentApplicationDescriptor().getVersion();

if ((versionFromSecurityData != null) &&
    !versionFromSecurityData.equals(versionFromDescriptor))
{
   String expandedText = "New Version Available. Do you want to exit and install?";
   int ret = Dialog.ask(Dialog.D_YES_NO,
                        msg,Dialog.NO);

   if(ret==Dialog.YES)
   {
     super.close(); // close main application

     // Get the default session
     BrowserSession browserSession = Browser.getDefaultSession();
     // now launch the URL
     browserSession.displayPage(http://www.myserver.com/myapp.jad);
     System.exit(0);
    }
}

I tried the command of part of the foregoing (0 and output (0, but maybe I'm not on this right, of course if I remove the super.close () and the System.exti (0), the browser burst, but I want nearby))

for auto output and have the web browser remains open and headed to the new version.

is it possible, or I'm going about this all wrong?

Thank you rim

When you call super.close (), and the display battery is empty after closing the window, System.exit (0) is called automatically. Close() returns never so, your browser code never runs.

Get rid of the call to close() or move it to where you call System.exit (0) and get rid of the latter.

Tags: BlackBerry Developers

Similar Questions

  • How to upgrade Safari is a Web browser supported?

    How to upgrade Safari is a Web browser supported? My main browser is Yahoo. After the update to my OS X 10.6.3 to 10.6.8 I tried to access my email through Yahoo. Before the upgrade, my Yahoo mail had to be basic messaging. I was hoping once I upgraded to 10.6.8 I would be able to upgrade to the latest features of Yahoo mail. He said that I use a browser not supported. When I clicked on upgrade of your browser, it took me straight to Firefox to download. I downloaded Firefox. I can access the new Yahoo mail via Firefox, but, not through Safari. How can I also make Yahoo mail on Safari?

    Open the Mac App Store and try to download El Capitan. If you get told that it is incompatible with your computer or not desired, choose about this Mac from the Apple menu, check if the computer has at least a Xeon or CPU Core 2 Duo(not Core Duo) and 2 GB of RAM, and if this is the case, click here and order a download code for Lion 10.7; the Apple Online Store also sells codes for 10.8 Mountain Lion to download, but it has the same system requirements as El Capitan. Note that if the maximum of your computer operating system is 10.7.5, you will probably still need to use Firefox.


    Back up your data and control your applications for compatibility before upgrading. In particular, Mac OS X 10.7 and newer do not support PowerPC programs such as versions of Microsoft Office prior to 2008.


    (137973)

  • I have a macbook pro: 2.3 GHz Intel Core i5, 4 GB of 1333 MHz DDR3 Ram. 10.7.5 version. When I open some websites, I get a message that web browser is obsolete. I use safari. When I do a software update, it says that the software is up-to-date. Help, plea

    I have a macbook pro: 2.3 GHz Intel Core i5, 4 GB of 1333 MHz DDR3 Ram. 10.7.5 version. When I open some websites, I get a message that web browser is obsolete. I use safari. When I do a software update, it says that the software is up-to-date. Help, please.

    Safari maxes in a version of Mac OS x.  New version of Mac OS x would be needed for the new version of Safari.

    Firefox is not limited within an OSX and probably has a version that works.  Chrome may as well but is a Devourer of resources.  Opera is a third option.

  • I have a new laptop and I am a newbie on the laptop. I inserted a cd but now how to get out? Of course it is obvious on the desktop what do, but not on laptop.

    I have a new laptop and I am a newbie on the laptop. I inserted a cd but now how to get out? Of course it is obvious on the desktop what do, but not on laptop.

    Well, no, actually, I talked to someone at Microsoft and he discovered for me. The answer is the keyboard on the top right of my keyboard and the third button on the end. Worked like magic.     Thanks again!

  • I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    Hello

    The unit just has USB slide out. If it is stuck, consult with a real computer store (the one that makes
    his own service in the House and not leeks and glances at a Best Buy or other stores) or gateway
    supported.

    Gateway drivers and downloads
    http://support.gateway.com/support/drivers/dlcenter.asp

    Technical support Gateway
    http://support.gateway.com/support/?cmpid=topNav

    Door Documents
    http://support.gateway.com/support/SUPINFO/index.asp?cmpid=topNav

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to get out computer safemode?

    How to get out computer safemode, troubleshooting says to many programs open in the start menu

    Hi kristi,.

    First of all, to deal with the programs at startup, click on start / all programs / accessories / run and type msconfig.exe, and then enter.  Go to the Startup tab and uncheck everything what you don't need from start (most is not necessary, but simply useful, but if not checked periodically it can accumulate over time).  You need your antimalware program and virtually all the rest of the list is optional (but some may be required for your system, so be a little careful, but if you uncheck something you really need and find out later, you can always go back and check again isn't a big concern). This only in the start, for now tab.  Click OK when finished.

    Now, to go out to start in safe mode, while remaining in msconfig, go to the Startup tab and uncheck the box Mode safe if it is checked.  If this isn't the case, then what you deleted should if all goes well do the trick.  When I did that the first time, I have removed more than 90% of what was there and there was no effect on me whatsoever - and not only the startup and shutdown to happen more quickly, but my computer run faster while working as well and the Task Manager showed a dramatic drop in CPU utilization and memory.

    Restart now.

    When you first restart, you get a screen asking you how you want to start.  Choose the Normal Boot or Normal Mode or something like that, said like that (NOT Mode without failure or something).  You need to start normally and this should solve the problem.

    If this does not work, then come back and tell me your exact version of Windows (32-bit Vista Business SP2 - and Yes, much more in detail) and we will try a clean boot troubleshooting procedure to try to find the culprits causing the problem - but I hope it won't be necessary.

    I hope this helps.

    Good luck!

  • How to get out the mode safe mode with msconfig.

    I'm working on my computer and need to start in safe mode. I ran the msconfig and reboot the laptop. I get to the login screen, but when I get my username and password it tells me that the user name and password is not correct. How to get out the mode safe mode with msconfig.

    When you run msconfig to get set to Safe Mode, you just activate/check the option/SafeBoot at startup. INI tab or did you do something else?

    There is some malware that if you use the/SafeBoot option, you will not be able to use your system again until you remove the switch/SafeBoot the boot.ini for you can boot normally.

    Maybe it's not your exact problem, but I will never suggest to anyone to use the option / SafeBoot never again - too risky when troubleshooting since you can always start new or will never connect again until you remove the switch/SafeBoot.

    Anywho, if that's what you have done, you can start in the XP Recovery Console and then either make a new boot.ini file containing the switch/SafeBoot or simply rename the boot.ini file, you have something like boot.ini.old if you don't have a boot.ini file (I know it seems like a weird idea).

    In a single partition configuration, XP is not even a file boot.ini to boot.  XP will complain if there is no boot.ini file, but will always start very well without one (non-believers - try it!).

    After you get booted up and logged in, you can rename boot.ini.old in boot.ini and run msconfig to remove the option/SafeBoot, and never use it again.

  • I had a virus that says that the FBI caught me downloaded inlegal stuff a fine of 72 hours or there would be charges pressed against me and I don't know how it get out!

    I had a virus that says that the FBI caught me downloaded inlegal stuff a fine of 72 hours or there would be charges pressed against me and I don't know how it get out!  Whenever I turn on my computer it pops up and I can't do anything! Sometimes I can go and get online! If anyone knows how to remove it please help me!

    What you are investigating your pc with?  What anti virus?

    Some malware knows how to avoid the standard as applications McAffee, Norton and Kaspersky, Avast.

    To be absolutely sure, you may have to reset it to the factory or clean install.  Make sure that you have a backup first.

  • How to get out of the UiApplication?

    Hello!

    Can u tell me pls, how to get out of the UiApplication. The deactivate method is sufficient for this.

    PLS, suggest me-

    System.Exit (0). Or close the last screen and call the application itself.

    Disable does something different:
    public void deactivate()
    Handles finishing event.

    The system calls this method when sending of this request in the background. By default, this method does nothing. Override this method to perform additional when processing sent in the background.

  • cartridges won't come out, says paper jam, how to get out of cartridges without killing printer.?

    cartridges aren't coming out,

    says paper jam, no paper in the printer,

    How to get out the cartridges without killing printer.?

    I did the thing video together 3 times and still won't come out? I'll call hp remote and hope they can fix it thank you

  • How to get a list of options (excel applications such as the browser, etc.) when you view the simultaneous release of request?

    How to get a list of options (excel applications such as the browser, etc.) when you view the simultaneous release of request? Profile options to define?

    Discovered that in order to get the display options, it must implement the system administrator--> Install--> the Display Options Display Options

  • How to get out with renaming a file every time that I change it?

    How to get out with renaming a file every time that I change it?

    Since the last update, I have more the possibility to combine files. How can I recover this feature

    10 pro version

    For the first issue: disable the preview pane in Windows Explorer.

    Wednesday, July 15, 2015 to 18:46, keithf52379832 [email protected]>

  • Is there a way to re set Lightroom to the original settings, I've been playing with it and got somewhere that I don't know how to get out of... not particularly computer savvu

    Is there a way to re set Lightroom to the original settings, I was playing with it and has gotten, somewhere, I don't know how to get out of. Not very computer savvy

    For starters, stop Lightroom

    On Windows, do the following

    Click the Windows Start button and in the search box type: -.

    %AppData%\adobe\lightroom

    Then press Return\Enter

    This will take you to the folder Lightroom (see image below)

    Select the Preferences folder and click on delete to send it to the Recycle Bin.

    Close the Lightroom folder, and re-start the Lightroom program.

  • How to get out of a loop of 2 different conditions

    Hello Experts

    I'm writing a procedure in which I take the PROVINCE as an input parameter. All provinces are stores in a table. I use a cursor variable and rowtype to control the province. After I find province I displays its code and province. Everything works very well wait for me if I can't find the province. I don't know how to get out of the loop, if I can't find the province. I already use the output when the condition. I was expecting another condition should function and must break out of the loop, but it doesn't. Can you please someone show me how to get out if I can't find the province in the table through the cursor.

    Here is my code

    Set serveroutput on
    variable G_TAX varchar2 (10)
    CREATE OR REPLACE PROCEDURE p_create (i_state VARCHAR2) is
    CURSOR cur_bb_tax is
    Select * from bb_tax;
    bb_tax_details bb_tax % rowtype;
    Start
    If it is cur_bb_tax % isopen then
    Open cur_bb_tax;
    end if;
    loop
    extract the cur_bb_tax in bb_tax_details;
    If (bb_tax_details.state = i_state) then
    dbms_output.put_line (bb_tax_details. State | bb_tax_details.idstate);
    end if;
    When the output bb_tax_details.state = i_state;
    end loop;
    close cur_bb_tax;

    exception
    while others then
    dbms_output.put_line (SQLERRM);
    end;

    Thanks in advance

    ....
    loop
    extract the cur_bb_tax in bb_tax_details;

    IF (cur_bb_tax%notfound) then  exit;END IF;
    

    If (bb_tax_details.state = i_state) then
    dbms_output.put_line (bb_tax_details. State | bb_tax_details.idstate);
    end if;
    ....

    SIM

  • How to get auto-fill to work for applications not not the browser

    Not as long as I am with the browser Safari, but during a phone and go to an application, any application, like Netflix when I put in my email as part of the connection that I have to type out in plenty no matter how many apps i go to, my Samsung would provide auto-fill it in when I start to type.

    Yet once, it is NOT on so that in the web browser on the internet, but on the phone using all apps.

    ?

    Thank you

    Not all applications will allow an AutoFill, but I found that I can use a shortcut of ALT text to get my email in some applications. It will depend on the application itself. I went into settings > general > keyboards > text replacement and then entered my email address, then a 3-letter code. When in some applications you can enter the 3 letter code and it will replace as my email address.

Maybe you are looking for

  • How to use the personal style polifonoc in a partition?

    Hello community, In Logic 9, I used to combine 2 flutes in 1 staff and used personal style polifonic when they played different roles. How logic X? Thanks in advance.

  • Error when sending emails - reception works well

    error message saying "an error has occurred when sending mail. The mail server responded: post to the RECIPIENT's ADDRESS is not allowed. Where I put it, "the RECIPIENT"... This error occurs for EACH other than my own recipient address email which is

  • How can I reformat my Satellite?

    I don't know how to reformat my laptop. I have windows XP installed. And when I pass back through the windows, it tells me that close all programs, and then re - format. Could someone tell me how to get back at the opening. F1, F2, F3... F8 does not

  • Saving values to a variable - new user of the dial.

    Hello I learn LabView so I can one day control a syringe pushes via serial connection and maybe more.  I am beginner, so please bear with me.  I am writing a program that simulates a combination lock.  My goal is to create a user to enter the first n

  • Sound does not work in my Vista computer.

    Original title: Hello I need solving audio sound problems no need for pilots to soand but I bought this record registration of his friend's Audio microphone who had the same problem before selling it, he was using this compact computer Presario f700