I want to download/View a pdf uploaded in Salesforce cloud. I have a download url for the PDF with me, when I try to render the same using google doc url in android application, its not displaying the PDF. When I try to download the PDF from the download url its downloading corrupted file. What I understood is when we call the URL from a browser is the url is authenticated with a token in the URL and we are redirected to a new Url path. How can I properly download the PDF in an android application?
Is there any documentation about how to download and preview the PDF uploaded in SalesForce cloud?