View Single Post
Old 09-26-2012, 06:35 AM   #1 (permalink)
fajriym
New Member
 
Join Date: Sep 2012
Model: 9**0
PIN: N/A
Carrier: Masih Cemen
Posts: 4
Post Thanks: 1
Thanked 0 Times in 0 Posts
Question Blackberry download failure

Please Login to Remove!

Hi Advance, I'm developing for Blackberry OS 5.
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?
__________________
fajriym was here
Offline   Reply With Quote