Download a pdf:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("www.education.gov.yk.ca/pdf/pdf-test.pdf")));
Ah as I’ve just found out this is device dependent.
scenarios
-
It will download the pdf to your browser/downloaded/ folder
-
You have a google docs account – It will ask you to sign in then view the pdf in the browser
-
You have a pdf reader installed – App dependent may catch it may not
In all scenarios though the user has access to the PDF with one line of code 🙂