Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
vishalspatil
Posts: 40
Registered: ‎07-14-2010
My Device: Not Specified
Accepted Solution

Torch browser does not maintain content handler for PDF (“application/pdf”)

Hi,

 

My aim is to open PDF from my application using installed third-party application (RepliGo).

 

Code snippet to open PDF from application:

   BrowserSession bs = Browser.getDefaultSession();

   bs.displayPage(“file:///store/home/user/Documents/MyPDF.pdf”);

 

Above code launches the browser and browser call content handler to open PDF i.e. launch third-party application RepliGo.  

 

This code works fine on 5.0 or lower version devices. On 6.0 browsers does not call third party application and instead it shows message “The item you selected cannot be displayed”.  Means 6.0 browser does not maintain content handler for PDF (“application/pdf”).

 

Is this limitation/known issue of OS 6.0 browsers that it does not support PDF? Any work around to achieve this on 6.0 browsers?

 

Thanx in advance!

Please use plain text.
Contributor
vishalspatil
Posts: 40
Registered: ‎07-14-2010
My Device: Not Specified

Re: Torch browser does not maintain content handler for PDF (“application/pdf”)

Problem resolved!!  

I used Registry and Invocation API (supports from OS 4.3.0)  

Here is the knowledge article which I referred:  How To - Open a file in a Documents To Go application

Please use plain text.
Developer
tklanilkumar
Posts: 206
Registered: ‎02-22-2011
My Device: BB TORCH & 9800
My Carrier: idea

Re: Torch browser does not maintain content handler for PDF (“application/pdf”)

hi vishalspatil

you said that

"My aim is to open PDF from my application using installed third-party application (RepliGo)."

so for this 3rd party application "RepliGo" you purchased it or its free one.

My doubt is without using the 3rd party App can't we show the pdf content.

I want to show the pdf content in my Application without using 3rd party Apps. is it possible pls help

Thanks in advance
Anil
*****************************************************************************
* Give kudos when you like it
* Mark it as a solution if it fixes your issue
Please use plain text.
Regular Contributor
amr3434
Posts: 81
Registered: ‎01-16-2012
My Device: BOLD 9650 + developer
My Carrier: Vodafone

Re: Torch browser does not maintain content handler for PDF (“application/pdf”)

RepliGO not free ... :smileysad: :smileysad:
and i have same problem here i wanna to display the PDF content in my app and found nothing until now
Please use plain text.