This is the simplest tutorial on loading pdf on android. I was having challenges on using 'fromAsset' method. it was showing error everytime i create a project. Please make a video on How to make PDF Book App inside Android studio without going online like this one. THANKS
I am new to android programming, sir please make a video how to fetch pdf from our internal storage. I read other comments you were stating that "change the file location accordingly" but i don't know to implement it. Sir, so could you make a video on it please.
This method uses google document viewer it could handle any size, and it's the only way you can do it using a WebView. You can also use libraries if you would like to.
You won't be able to load a firebase file url like this. Recommended you to upload it on a server. I recommend Digital Ocean. refer.codeseasy.com/digitalocean
sir i try to open pdf not directly .. pdf link in my website that i run through webview ... now when click on that link then pdf open only ... please help
@@CodesEasy jab pdf open hoti hai to top right corner me eak arrow key show hoti ( usme click kro to sign in ka option show hota hai) usko disable kse karein
Thank you sir very simple lesson and you teach it very well🎉
You are welcome
I'm learning Android apps recently,your video taught me a lot,thank you very much
Glad to hear that
This is the simplest tutorial on loading pdf on android. I was having challenges on using 'fromAsset' method. it was showing error everytime i create a project. Please make a video on How to make PDF Book App inside Android studio without going online like this one. THANKS
Happy that the video helped you
Thank it was very helpful. Well taught.
Happy that you liked it
Sir how can i use this in recyler view please reply me 🙏
There is a video for recycler view in the channel
@@CodesEasy okk sir thank you 😊
thanks👍
Welcome 👍
Sir can we have the one that view pdf file save in assets folder?
I am new to android programming, sir please make a video how to fetch pdf from our internal storage. I read other comments you were stating that "change the file location accordingly" but i don't know to implement it. Sir, so could you make a video on it please.
Sure
this will only works if file is less than 10 MB
This method uses google document viewer it could handle any size, and it's the only way you can do it using a WebView. You can also use libraries if you would like to.
Increíble video, me ha servido bastante. muchas gracias. una pregunta como podría añadir la función de poder descargarlo
👍
Feel free to ask any doubts if any
Find something useful github.com/vishnusivadasvs
can we use a "google drive " url in this program?
yes, give the final download url
thanks a lott
Can user download the pdf if s/he wants? If yes how to disable the downloading
its take to much time load but i am opening a pptx file not pdf any solution for it and sometimes webview becomes white
You could use other libraries too
what libraries would you recommend?@@CodesEasy thank you!
bravo
Happy that you liked the video
I have a PDF file uploaded into Firebase Firestore...how to show it?
You won't be able to load a firebase file url like this. Recommended you to upload it on a server. I recommend Digital Ocean. refer.codeseasy.com/digitalocean
I have converted my wordpress website to android app but the pdf file in it is not opening. can you help me?
You have to handle pdf loading separately
@@CodesEasy how please tell me
@@CodesEasy thanks i done it
How to read pdf file from asset folder and showing in webview?
You can simply change the url to android assets folder url
Asset folder url means file:///android_assets/rt.pdf
I used this one but it is not loading pdf
sir i try to open pdf not directly .. pdf link in my website that i run through webview ... now when click on that link then pdf open only ... please help
You can set it on WebViewClient
sir after typing intent. put extra in not showing
intent.putExtra()
Watch the video and try
What about a local pdf file saved on cellphone storage?
You need to set the file location accordingly
This solution is risky and wont work when google changes its docs base url.
This is one of the ways for loading pdf. Its easy too.
I am facing blank/white screen on webview after opening pdf. Any solution for that how can I resolve this
Make sure you have added permission for internet
@@CodesEasy oohh. Yes sir obviously I added internet permission
log the complete url and then open it on any browser and check if its working.
@@CodesEasy url is working sir sometimes showing pdf sometimes getting white screen
Yes so there is something wrong with the pdf url. Try upload the pdf file somewhere else. Make sure it ends with .pdf
How did you get the url
The url is given in the video, so you can use it. We did our research and found all these for you.
@@CodesEasy How can I get the url of my own pdf ….
I want to use but my own pdf ..
Please reply…
Upload the .pdf file in a server. You can purchase one from any providers.
@@CodesEasy please for some examples.. I have google but I can’t find any …please help me out
What if I want to display a pdf from internal storage
You can do that too. Just change the file location. Also you will need to add permission for accessing storage.
How to open the pdf files from a website after making a webview of that website
inside shouldoverrideurlloading check
if(webView.getUrl().contains(".pdf")){
//load the google docs pdf viewer url + actual pdf url
}
How to Remove arrow key in the to right corner in pdf
Sorry I didn't understand. Join our whatsapp group for more clarification.
@@CodesEasy jab pdf open hoti hai to top right corner me eak arrow key show hoti ( usme click kro to sign in ka option show hota hai) usko disable kse karein
How to share the pdf file
You can create a button, Onclick share the url or you can download the file and share the file itself.
@@CodesEasy do you have code to share the file sir
Bhai i am getting error 404 not found
404 error is because there is nothing in that url. Make sure the url is functional
@@CodesEasy yes i have used google drive url with sharing option
Then also same problem please help 🙏