I'm trying to open a local PDF file stored in the sdcard. I tried everything possible but nothing seems to work.
I tried to open the pdf using the anchor tag with external and _blank attribute.
I as well tried to "WebIntent, an Android PhoneGap Plugin". But was not able to succeed. I'm sure i have missed something in the manifest xml file. I'm not more into backend development. Any help will be appreciated.
Thanks in advance
Here the answer :
http://giovesoft.blogspot.com/2011/08/download-and-open-pdf-with-phonegap.html#more
Related
May be like Duplicate, but I cant find most suitable answer for me. Many examples have explain about img files. like this, Android Java Upload File via WebView without FileChooser I want to upload .db file into my web server from my android application using Webview. but I cant understand what I want to do. Is that possible (upload .db file)? And if yes, what I want to do? Im new for android.
Hi i am new to android development and have been searching everywhere on the internet for how to display simple html file on webView. Almost everybody is using the code:
webView.loadUrl("file:///android_asset/index.html");
which works fine ONLY when the html file is inside the asset folder of the android app!. I am trying to do something that loads the html file from another drive and have searched everywhere to find this solution to no avail. Please help me out. Thanks in advance.
I am developing an Android application using Cordova where I am required to display a PDF file in application.
I have tried using pdf.js from Mozilla and it worked only on browser and not in application. Same was the case with <embed></embed>.
I am not able to find any solution, please help me to solve this issue.
Thank you.
You cant Open PDF in cordova webview. Try Phonegap File Opener Plugin.
I am working on android applications. I gone through the link http://dhruvvaishnav.blogspot.in/2013/05/download-file-to-your-android-device.html and able to display the pdf file. But now my problem is with security. When I display the pdf file in my android application it is possible to save that file. But according to my requirement the pdf file should not be saved. It should be only readable and should not be savable. What is best solution for this?
Please anybody help me with this issue.
Thanks in advance
The following link downloads a file from a site.it works fine in desktop browser. but it is not working in android default browser and in webview code(i used download listener too but not working).
I believe the Android default browser can't download .zip files by default (you should get a "This content is not supported" error).
If you want to download certain files through your own application though, you can try this this solution.
What code do you use? Could you specify it? I suggest you downloading it in AsyncTask via HTTP. Where do you save it? What is the error log? So many questions =)