BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Blackberry download failure (http://www.blackberryforums.com/developer-forum/261686-blackberry-download-failure.html)

fajriym 09-26-2012 05:35 AM

Blackberry download failure
 
Hi Advance, I'm developing for Blackberry OS 5. :smile:
When I tried to use Browser to download a file from the internet through my app, the loading takes too long and failed. Anyone know why?

this is my code

Code:

int clearConfirm = Dialog.ask(Dialog.D_YES_NO,
                              "Do you want to download?",
                              Dialog.NO);

if (clearConfirm == Dialog.YES) {
    try {
        Browser.getDefaultSession().displayPage("mysite/blackberry/file.cod");
    } catch (Exception e) {
        e.printStackTrace();
    }
}

whats wrong?


All times are GMT -5. The time now is 12:35 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.