How to load a PDF file in a URL from an android app

First of all you have to install a 3rd party application to your Android running device to view PDF files as Android operating system does not have a native app to view PDF files. There are many free apps for view PDF, in the Android market. You can download and install a one application from there. Then call the following lines of code where you want to download the PDF file and display it.

Intent i = new Intent(Intent.ACTION_VIEW);


Then a new activity will start with a web browser pointing to that address. There it will prompt you to download the PDF file. Then you can download it and view it from the PDF viewer you have downloaded before. It’s ridiculous that android and blackberry doesn’t support a in-built PDF viewer. PDF is a world accepted format for documents. iPhones and Windows mobile running phones have a great support for PDF viewing. But shamefully android and blackberry doesn’t support it. :(


arshad said...

Hi its really very nice i enjoyed a lot to visit..Handset prices

Ruchira Gamage said...

Thanks a lot arshad. :)