I am trying to open a url which is actually a pdf file but it does not have .pdf extension in android webview BUT it does not works. It directly downloads. But when i open the url in WEB browser, the pdf file opens perfectly. Since this url does not have .pdf extension, I can not use google docs as well. Also tried to download and open the file using any pdf viewer app, it also fails. The main reason is my Url does not have .pdf extension. Is there any other solution?
Asked
Active
Viewed 2,498 times
0
-
could you give us the link? – Niko Adrianus Yuwono Sep 24 '14 at 07:03
-
if want to download pdf file then http://call-me-early.blogspot.in/2013/03/android-webview-download-pdf-generated.html this link also helps you – Vaishali Sutariya Sep 24 '14 at 07:11
2 Answers
0
I think you are not setting the content type as pdf(MIME). Thats why you are getting problem when you are downloading the pdf content.
See this post for more details.