try to open a PDF via the BrowserFieldRequest APi url

Hello

I try to open a PDF of the following url >

CFB BrowserFieldConfig = new BrowserFieldConfig();

BrowserField bf = new BrowserField (config);

BrowserFieldRequest res = new BrowserFieldRequest (PDF_URL);

browserField.requestContent (bf);

When I run the code on both the Simulator and the device I get

Error message: unsupported media type.

But if I try to open a PDF manaually on the device lets say Google.com it opens.

The url of the pdf that I pass opens on your desktop.

What else is required to open the PDF file from a java application.

Thank you

sgarg

OK, it works with the device but not the reason of emulator is the BES server.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Link for you to connect to a desktop to another computer

    I just bought a HP computer... HP Pavilion HPE h9 - 1210t Phoenix. I also have a HP laptop. I got a link that would allow me to see one office to another and I had to do a restore of the system on the office and lost this link and I was wondering if

  • Z510 Lenovo memory upgrade

    I think to buy the laptop next IdeaPad Z510 with hybrid & rear propulsion system on keyboard

  • MOSFET model STB80PF55

    This is a ST model that doesn't seem to work. Can anyone help? * MODELING FOR STB80PF55T4 . SUBCKT STB80PF55T4 1 2 3LG 2 4 7, 5NLS 12 3 7, 5N1 6 4.5N LD4 5 1.78512 RGSR 12 9 0.191E - 027 6 0.611E RD - 02RJ 7 8 0.158E - 02CGS 9 5 0.388E - 0810 7 0.141

  • a hard drive in several configurations

    It seems that my hardware is working correctly, could well be my hard drive or operating system, but I can't tell. Here's the question. After that the POST is completed as soon as windows does, it freezes. Before the windows logo appears. It cannot l

  • Drag drop not accuate

    I have Adobe first Pro CC 2015.2 release. Mac Pro OS X EL Capitan 10.11.3.Using two monitors. The primary monitor is having the problem. The second monitor works fine.Whenever I have try and drag and drop an asset into a sequence, or a project manage