Open a PDF from the web without the web browser?

darkuni

Member
Licensed User
Longtime User
Hey gang ..

I need to direct my app to open a PDF stored on the web.

I can instantiate a browser and pass the URL - but that is really an extra step I'm hoping to avoid.

Is there a way I can pass the "default" PDF app the address and have it pick it up?

I COULD byte stream it down ... then could I "shell execute" the thing like in Windows?

Thanks for any help.
 

darkuni

Member
Licensed User
Longtime User
Thanks for the reply.

I understand there is no "innate" app within Android, but my customers will have *A* PDF reader installed and likely already have a Default Action for .PDF files.

With THAT assumption I was just hoping I could stream the file down locally, store as a local file, then "invoke" the PDF - much like you would use a shell in Windows - allowing the OS to "take the reins" and either open their default action, or pop up the CHOOSE box for any compatible app.

What I'm looking to AVOID is: spawning the browser to download, then forcing them to pull the notification shade and tap the downloaded file.

The least interactions possible is the best.

Thanks again for all the help. You are a one man machine Erel!


There is no built-in pdf reader in Android.

I recommend you to download the file, store it in the external storage and start the default reader.
 
Upvote 0
Top