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?