• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Displaying pdf files through our application

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Is there a way to read pdf files and display it in our application on Android?...

If there isnt any built in support, can we pass on the pdf to any third party pdf reader application? If yes then how do we do it?

Looking forward for help ..

-Shruthi
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do a search for "PDF reader/PDF viewer" you will get a list of quite a few applications that propose to do so..

So, if you want to know whether it is possible to view a PDF file; you now know it is.

If you have such an application installed on your Android device, you should be able to invoke it by sending an appropriate intent to the system and passing appropriate data to it.
 
shruthi sridhar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your quick reply.

Yes. I was exploring that option to call through an intent. But i am not able to figure out how to proceed with it. A sample code would help me to proceed.
 
Saloon Keeper
Posts: 26719
189
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My new phone came with Adobe Reader. I suspect, however, that it's basically just a port of the stock reader app and not intimately aware of Android. Still, I'd expect that at least you should be able to launch it with a reference to a document file.

Check out Adobe's forums and see if they can help.

Then come back and tell us!
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

shruthi sridhar wrote:Yes. I was exploring that option to call through an intent. But i am not able to figure out how to proceed with it. A sample code would help me to proceed.



If I had any PDF reader on my phone, I would launch the application and monitor the logcat. Whenever, a new Intent is launched, logcat generally lists the Intent action, Flags, component names and things alike. It is then just a matter of creating *similar* intent object.

The only part, I presume, you need to worry about would be the data that you might need to set and perhaps its MIME type. And you can only get to know that from the creators of the application as Tim already suggested.

@Tim: Glad to see you in Android forum
 
Tim Holloway
Saloon Keeper
Posts: 26719
189
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monu Tripathi wrote:

@Tim: Glad to see you in Android forum



I've been lurking around for a while, but last week, my decrepit old Windows Mobile WiFi Bluetooth phone magically transformed itself into a Windows Mobile WiFi PDA. When it boots, it says "radio: None" and you can't switch the telephony features on and off any more. Since that was my business phone, I'm now proud owner of a brand new HTC Hero, and if I'm lucky I'll even get the #%#$$$@$@ rebate.

Android has a lot of apps in the store, but I've already found some things that I'd like to do better.

 
shruthi sridhar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Monu.. followed what you said.. it helped
 
shruthi sridhar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Monu ... followed what you said and it helped
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi


I want to get data from webserver which is in the format of pdf. And display it in my android emulator.

Is there a way to read pdf files and display it in our application on Android?... could you please give
me solution with sample code.

Looking forward for help ..
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic