HomeОбразованиеRelated VideosMore From: Sabith Pkc Mnr

Android Browser - WebView - Complete Tutorial Series Part 4 - Download files using DownloadListener

62 ratings | 3263 views
#AndroidWebView Download the Source Code Here: https://github.com/SabithPkcMnr/WebViewMaster Hellooop!! Today we're adding the Swipe (pull) to refresh layout to our WebView and also adding WebView URL share through Android Share intent and then little modification to our layout. So watch and understand. Official Website: http://www.techcetro.com Subscribe Here: https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 You must need to install Android Studio IDE (Integrated Development Environment) in order to practically continue this video series. You can find the installation instructions here: http://www.techcetro.com/android If you have any kind of suggestions or recommendation, feel free to let me know. Ask your doubts in the comment section below to that corresponding video and I will be answering each one of you! The official website for source codes: http://www.techcetro.com Hope that was a great tutorial for you. Feel free to subscribe so you won't miss any updates !! https://goo.gl/lrrGFC Find Me : Google : https://google.com/+SabithPkcMnr Twitter : https://twitter.com/SabithPkcMnr GitHub : https://github.com/sabithpkcmnr Subscribe Me : https://www.youtube.com/SabithPkcMnr?sub_confirmation=1 The official website for source codes: http://www.techcetro.com Your master: Tutor: Sabith Pkc Mnr Skill: Android Programming Expert Profile: http://www.google.com/+SabithPkcMnr Sabith Pkc Mnr | TechCetro Official© Mirroring is strictly restricted.
Html code for embedding videos on your blog
Text Comments (186)
NGD cricket Practice (2 days ago)
Sir dounlod hua file ko aik folder me kaise show kre
A YouTube User (23 days ago)
Hey Sabith Can you please tell me that how to block external links in WebView? Or how to implement that when a user will click on external links in webview then that link will open in default browser not in webview? Well, i hope you will tell me a good answer. Please bro help me.
Sabith Pkc Mnr (23 days ago)
Inside the onPageStarted method, you can create a if-else statment and check whether if the url.contains(yourdomainname) else load your website home page.
Deep Kumar (1 month ago)
hello sir, how to add new tab option on android studio browser app ?
Sabith Pkc Mnr (1 month ago)
You will have to go for fragment or ViewPager method. Better grab any Browser libraries.
Ashok Thallapally (1 month ago)
How to implement print button enable from webview
Sabith Pkc Mnr (1 month ago)
You mean printing the webpage?
Ashok Thallapally (1 month ago)
How to implement onShowFileChooser method in setWebChromeClient
Sabith Pkc Mnr (1 month ago)
See answers from this page: https://stackoverflow.com/questions/29666844/onshowfilechooser-from-android-webview-works-only-once
Ashok Thallapally (1 month ago)
excellent bro
Sabith Pkc Mnr (1 month ago)
Thanks man!!
Andrija Randjelovic (2 months ago)
It would be nice from you if you can make a video about designing application to fit all screen sizes.Thank you, you are best!
Sabith Pkc Mnr (2 months ago)
Thanks a lot. Yes, I will be making more videos soon.
xMB25 x (2 months ago)
you have really the best channel with the easiest guides to follow for android studio users ,thanks a lot mate, and for the next tutorial could you show us how to build those launcher apps,those apps that change your icons and wallpapers in the same times,have a great day,you are the best sir.
Sabith Pkc Mnr (2 months ago)
My pleasure hearing from you. Of course, some other great tutorials are on the way. See you soon!!
manish kumar (2 months ago)
no part 3
Sabith Pkc Mnr (2 months ago)
Yes, there is.
Bikash Kalita (2 months ago)
Sir how you design your HD app icon. In my case the quality of the icon image decreased after generate sign apk. Please help with any tips to create HD icon.
Sabith Pkc Mnr (2 months ago)
That's great!!
Bikash Kalita (2 months ago)
Thank you sir. Now my problem has been resolved after watching this https://youtu.be/siUQzchtOEI. Thanks for this video.
Sabith Pkc Mnr (2 months ago)
How did you set the App icon? Have you watched my video on setting HD app icon?
TerrorHC 123 (2 months ago)
Good job
Sabith Pkc Mnr (2 months ago)
Pleasure. New videos will be coming soon.
TerrorHC 123 (2 months ago)
When new video? I"m waiting impatiently
Sabith Pkc Mnr (2 months ago)
Thanks!!
Fun Unlimited (2 months ago)
I had created a aap and published in play store but i download in all phones but only in android 7.1 it runs and below 7.1 it shows a error message unfortunate app stopped
Sabith Pkc Mnr (2 months ago)
Have you tried changing the SDK level? If so, copy.paste your gradle codes here.
Fun Unlimited (2 months ago)
Sabith Pkc Mnr i had gone through all your steps then also my problem occur if you have another suggestion please tell me
Fun Unlimited (2 months ago)
Sabith Pkc Mnr ok thanks
Sabith Pkc Mnr (2 months ago)
See the app level Gradle file and check for the minimum SDK level. Bring it to something like API19 and then try to update your Play Store APK.
Voyageur (2 months ago)
Hello bro. Can you please make a tutorial on 1. how to use switch prefferences to set day /night mode. 2. How to select font size using list preferences. 3. How to chose notification sound. Please please i hardly need it. Thank you very much.
Voyageur (2 months ago)
Sabith Pkc Mnr Thanku very much bro. I'll be waiting for it ☺
Sabith Pkc Mnr (2 months ago)
I have a plan of making tutorials on at least some of the mentioned item.
Mobile IDE (2 months ago)
next tutorial shows making the system to create new tabs is the system shows the search history
Mobile IDE (2 months ago)
Sabith Pkc Mnr Think :)
Sabith Pkc Mnr (2 months ago)
May be we can think of it.
Bikash Kalita (2 months ago)
Hello sir, i am doing B.Sc with math major now. What course should i learn after Bsc to become a software developer. Please help me because i don't have any idea about this. But i like this.
Bikash Kalita (2 months ago)
Thanks again sir.
Sabith Pkc Mnr (2 months ago)
There are separate online video courses for learning all of these. You can also find any computer course centers near to you for learning physically than this video courses.
Bikash Kalita (2 months ago)
THANK YOU Sir. SO NOW IN WHAT COURSE I WILL BE able to learn these languages.
Sabith Pkc Mnr (2 months ago)
Being a software engineer is not a big deal, it is more about having an idea of developing creative apps and solving problems through technology. For a software engineer, you need to know some of the basic codes and programming languages starting from HTML, python, etc to Java, Visual Basic and maybe Swift too. Learn the languages according to the situation you are pulled to, not all the languages are going to help you out but the one that can well fit your demands. That's it. Thanks!
Aman Deep (2 months ago)
Sir, I got SSL protocol error in my browser project please tell us how to implemention certification..... Please make a video on this topic. Thank you in advance...!!!
Sabith Pkc Mnr (2 months ago)
May be this too: https://damianflannery.wordpress.com/2010/09/28/android-webview-with-https-loadurl-shows-blankempty-page/
Sabith Pkc Mnr (2 months ago)
Refer to this page: https://stackoverflow.com/a/38389276/9543318
Aman Deep (2 months ago)
Untrusted site are not open.....!!
Aman Deep (2 months ago)
When a enter website like fb,google and other social media site open successful... But i enter saavan in url then show.. SSL error Protocol warning...!!
Aman Deep (2 months ago)
Sir, i am a pharmacy student.. Am learn android studio from your videos.....!!
A YouTube User (2 months ago)
Please make more tutorials on this topic.
Sabith Pkc Mnr (2 months ago)
No enough time, that's why. Like you know, I am working on my website now! I will do it when I actually become free :)
Kishal Mandal (3 months ago)
You are amazing
Sabith Pkc Mnr (3 months ago)
Thanks a lot :)
Danish Farooqui (3 months ago)
Sir can you please make video on how to handle images for different screen sizes in android?
Mahipal bisht (3 months ago)
thanks you,
MANSOOR KHAN (3 months ago)
hello dear i have problem when i build apk or generate signed apk and run on real device its say, unfortunately, app stop every app not only 1 what is the matter
Justine Chacko (3 months ago)
MANSOOR KHAN Check both signature v1 and v2
BiRon Official (3 months ago)
How do you get verified?
Sabith Pkc Mnr (3 months ago)
I am verified by Google.
Sundeep Haadia (3 months ago)
A doubt As soon i open a site, it opens an authentication popup for entering uname and pwd, works well in browsers. However in webview when i open the same site, it doesn't open the popup and stays blank... Any leads please?
Sabith Pkc Mnr (3 months ago)
You can visit some browser and understand what they are using in their codes: https://github.com/anthonycr/Lightning-Browser https://github.com/mthli/Ninja https://github.com/scoute-dich/browser
Sundeep Haadia (3 months ago)
Sabith Pkc Mnr thanks..but both seem to be different queries from mine.. I actually want to open this webpage "164.100.194.110:81" as soon we open it loads a popup of authentication in browser but in webview it stays blank..
Sabith Pkc Mnr (3 months ago)
You can try something like this: https://stackoverflow.com/questions/9172805/android-webview-inside-dialog-or-popup/9173368 https://stackoverflow.com/questions/23308601/android-open-pop-up-window-in-my-webview
as df (3 months ago)
I want to add web view inside list view supposed if I add new url inside firebase then it will generate new web view and if I add another url then it will generate another web view
Sabith Pkc Mnr (3 months ago)
Sorry, what?
as df (3 months ago)
Sabith Pkc Mnr it's easy but what I say it's possible
Sabith Pkc Mnr (3 months ago)
That's not the style of programming, you can have multiple urls but the only that load is a single WebView.
Justine Chacko (3 months ago)
Youtube full screen option not available in webview? How to achieve it?
Justine Chacko (3 months ago)
Thanks.
Sabith Pkc Mnr (3 months ago)
For YouTube video only app, I suggest using YouTube Player API but if it is a WebView then you can try below one: https://github.com/cprcrack/VideoEnabledWebView
Muhammad Awais Iqbal (3 months ago)
Where I can find the download file?
Sabith Pkc Mnr (3 months ago)
https://github.com/SabithPkcMnr/WebViewMaster
as df (3 months ago)
It's possible to add webview using firebase supposed if I add url in firebase then it will automatically generate web view inside app it's possible
as df (3 months ago)
Sabith Pkc Mnr because I am trying something new which is very hard
Sabith Pkc Mnr (3 months ago)
I got it even before. My question is 'why?' Why do you want to create multiple webviews?
as df (3 months ago)
Sabith Pkc Mnr no ,I want to create multiple web view . When I enter new url it will create new web view and when I enter another url then it will create another web view and so on
Sabith Pkc Mnr (3 months ago)
I mean like you can get all those Urls into a String array or map and then use a single WebView to load all those urls according to users request.
as df (3 months ago)
Sabith Pkc Mnr supposed if I paste google url inside firebase then it will create web view of Google and when I place another url YouTube then it will generate another web view and so on. 1.google 2. YouTube and so on it will automatically generate new web view one after another and it will be long list
koro baloch (3 months ago)
Do you have apps in the Google app store. It would be great if so
Sabith Pkc Mnr (3 months ago)
I have. Simply search for "Sabith Pkc Mnr" on Google Play Store.
koro baloch (3 months ago)
Wow. You did improve a lot, really impressive. Love your videos
Sabith Pkc Mnr (3 months ago)
Thanks a lot man, feel free to support on my website as I am not making revenue from YouTube: https://www.sabithpkcmnr.com/
MANSOOR KHAN (3 months ago)
hello dear sabith i have problem on android studio on my firebase i send pic on ur twitter and fb cheak and help please
Sabith Pkc Mnr (3 months ago)
You can download it using the Chrome browser inside it.
MANSOOR KHAN (3 months ago)
sabith can you solved my problem and sabith how can we install other apps like fb twitter and more apps on android studio emulter
MANSOOR KHAN (3 months ago)
thnks buddy
Sabith Pkc Mnr (3 months ago)
Sure!
Pro Studio App (3 months ago)
hello sabith dear i have one problem on my app can you please help me i send pic on ur twitter or fb and here is my error Cannot find getter for field. this error for imagelink cannot find getter for field. this error for categoryid cannot find getter for field. this error for savetime what can i do i send pic of this error
Sabith Pkc Mnr (3 months ago)
Sorry, I don't have such a free time :)
Pro Studio App (3 months ago)
i cheak lots of time but icant resoled it can isend you my project code and u soled it please
Sabith Pkc Mnr (3 months ago)
I see that you're trying to use RecyclerView on your project and so double check how you added the Getter & Setter methods and then try Build > Rebuild Project.
Supreme Tech (3 months ago)
Hey bro Nice Video I want your help as I made an app with 3 fragments which lead to different pages in a website with a bottom nav bar everything is perfect but only one problem every time I switch to a fragment it reloads every time i switch fragments which is kind of annoying, can you call me at +917006280914? your help is appreciated
Sabith Pkc Mnr (3 months ago)
You can save the instance from the Bundle. See this: https://stackoverflow.com/questions/15313598/once-for-all-how-to-correctly-save-instance-state-of-fragments-in-back-stack
The OldGamer GV (3 months ago)
Sabith bro I'm back...I didn't have internet for these days...What did I miss?? App released??
Sabith Pkc Mnr (3 months ago)
Thanks a lot man!!
The OldGamer GV (3 months ago)
Sabith Pkc Mnr will always support u
Sabith Pkc Mnr (3 months ago)
I cannot make another AdSense account for this channel, the only way is to enable my AdSense by Google. I paid for the domain and hosting, all other works and integrations are done by myself without any help from anyone 😎 Hope you support me through my website👍
The OldGamer GV (3 months ago)
Sabith Pkc Mnr But u can make another Adsense for YouTube right because u have a good channel... And do u pay for that website??
Sabith Pkc Mnr (3 months ago)
No, my AdSense got disabled due to invalid clicks!!
NGD cricket Practice (3 months ago)
Sir notification not show
Sabith Pkc Mnr (3 months ago)
Notification from where?
Pro Studio App (3 months ago)
hello sabith dear i have following probleme what can i do instance = Room.databaseBuilder(context,LoacalDatabase.class,DATABASE_NAME) .fallbackToDestructiveMigration() .build(); cannot resolve method (.fallback To Destructive Migration) isend pic on ur twitter please help
Sabith Pkc Mnr (3 months ago)
Great to hear. Show some Support: https://www.sabithpkcmnr.com/
Pro Studio App (3 months ago)
thnks sir my problem is solved
Pro Studio App (3 months ago)
on fb or twitter
Sabith Pkc Mnr (3 months ago)
Can you send it again? I can't see them...
Crazy Techy Osvio (3 months ago)
how to save the downloaded file in dowload activity
Sabith Pkc Mnr (3 months ago)
Download Listener will do that automatically like you see in the video.
Your Finder (3 months ago)
where can I put runTime permission
Sabith Pkc Mnr (3 months ago)
See this: https://www.androidhive.info/2016/11/android-working-marshmallow-m-runtime-permissions/
Zahiruddin (3 months ago)
Not writing data in external storage
Zahiruddin (3 months ago)
I want to buy some codes plz personal messages me fb.com/zahiruddin.nikka
Sabith Pkc Mnr (3 months ago)
https://github.com/SabithPkcMnr/WebViewMaster
Zahiruddin (3 months ago)
you can give me link of apk you created webview browser i will check this app support downloading corect.
Zahiruddin (3 months ago)
So how will my problem solve
Sabith Pkc Mnr (3 months ago)
Sorry, I cannot do that.
Vibhor (3 months ago)
Sabith please do a tutorial on linking Google Play Console App with Google Analytics for better understanding of statistics. Please.
Vibhor (3 months ago)
Sabith Pkc Mnr Thanks a lot
Sabith Pkc Mnr (3 months ago)
Okay, may be I shall do a video on that.
Ramandeep Singh (3 months ago)
You are so good man. I love your tutorials and the way you teach it. Kindly also tell about adding banner and interstitial ads.
Sabith Pkc Mnr (3 months ago)
Let me think of it.
Ramandeep Singh (3 months ago)
It will be good if you add a tutorial on how to use this.....I need help in it.
Sabith Pkc Mnr (3 months ago)
Nice question. You can use any download library for handling the download process of WebView. Try this download library: https://github.com/MindorksOpenSource/PRDownloader
Ramandeep Singh (3 months ago)
One question. How can we add an alertbox to allow or disallow the download to minimize the wrong downloads while visiting websites like adf.ly.
Ramandeep Singh (3 months ago)
Thanks it really helped a lot. Banner ad is working very good.
Raphael Ebner (3 months ago)
Do you know a way to get the current time and date from Internet to my app?
Raphael Ebner (3 months ago)
Sabith Pkc Mnr thanks, but i have already tryied this and it would not work, because i don't know where to write the code, and how to get the library (Link is offline) ans how to install
Sabith Pkc Mnr (3 months ago)
You can try these pages: https://stackoverflow.com/questions/13064750/how-to-get-current-time-from-internet-in-android https://goo.gl/3uxii5
THE MOD GAMER (3 months ago)
Where is a app exit pop-up... And plz give me ideas to put banner ads plz.......
THE MOD GAMER (3 months ago)
R u making wallpaper tutorials..... Plz upload fast..
Sabith Pkc Mnr (3 months ago)
Exit pop-up (dialog) will be there in the upcoming videos.
Sachin Kumar (3 months ago)
How to add download like uc browser? What we need
Sabith Pkc Mnr (3 months ago)
Okay, we can think of that.
Sachin Kumar (3 months ago)
Sabith Pkc Mnr browser has its own downloder with resume support
Sabith Pkc Mnr (3 months ago)
What's with UC browser download? I haven't used that app before.
Sachin Kumar (3 months ago)
Nice
Sabith Pkc Mnr (3 months ago)
👍
Mr. Amio (3 months ago)
please make video on Browser "New Tab" please please please
Sabith Pkc Mnr (3 months ago)
😜🤪👍
Mr. Amio (3 months ago)
unexpected answer
Sabith Pkc Mnr (3 months ago)
This is just WebView tutorial not browser.
OMAR BOUDIBA (3 months ago)
Thanks 😍😍😍
Sabith Pkc Mnr (3 months ago)
😜😎
Edition Studios (3 months ago)
Thanks😍❤❤
Sabith Pkc Mnr (3 months ago)
Welcome😎
KS (3 months ago)
Thanks for this Sir i know this i want to know to implement pause,resume,cancel and support all formate's to download like .apk,.exe etc thing plz implement this things in next video
KS (3 months ago)
Vijayan Mergu Only android studio + stack over flow
Vijayan Mergu (3 months ago)
KS what are the technologies do you use to creating a browser
KS (3 months ago)
Vijayan Mergu No bro I am creating a browser
Vijayan Mergu (3 months ago)
Do you have any idea on that.. Let me know
KS (3 months ago)
Vijayan Mergu Ok cool
NGD cricket Practice (3 months ago)
Sir dounlod any video and audio
Sabith Pkc Mnr (3 months ago)
This code can do that.
NGD cricket Practice (3 months ago)
Thank u sir🙏🙏🙏
Sabith Pkc Mnr (3 months ago)
Most welcome!!

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.