开发者

How to open pdf file from android code directly

I am working on an android project where I have to show a pdf through our project. The pdf is located at some URL (e.g http://www.cbwe.gov.in/HTMLEditor1/pdf/sample开发者_开发技巧.pdf ).

I have to directly open the pdf without saving it on the phone using android code like browser. In android we can not show pdf in browser.

How do I do this?


You can probably use Google docs viewer http://docs.google.com/viewer?pli=1. This is a complete in browser solution for viewing PDFs and it should work on mobile phones. Be aware that this solution converts pdf's to images and might turn out very data intensive (in other words expensive for users without flat rate data plans).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜