here the validity of the internet is not taken into account. you just have to activate the connection for the application to work even if you don't have data! I find it problematic
little help please... how do i make it to check in every activity do i need to paste the same start/stop functions in each and every activities or there's any other way???
In my case, the project does the exact opposite work; when I turn on the data, the alert dialog pop up and when I turn off the data, after tapping on retry button it works . Can you tell me how to fix it ?
Thanks brother, from Colombia I improved it with automatic detection and session verification
The video is great, but it is not up-to-date. This format is not supported after Android 10, but I still thank you for making this video.
Awesome
Amazing tutorial bro ❤❤
Thank you very much for video, is it possible to remove dialog once internet is turn on ?
Thank you for making such video but I have one dought that how to use snackbar instead of alert dialog
Nice vdo
Спасибо тебе ты лучший, помог решить проблему с интернет магазином🔥😉
thanks genius! Greetings from Argentina!
thanks a lot man
Very knowledgeable and helpful video thank you.. keep posting good videos.
Sure... :)
Thanks ❤
it worked THNX BRO
Thanks alot 💖.. it would be great if you had explain the code..
Supper b video
Just bravo...
here the validity of the internet is not taken into account. you just have to activate the connection for the application to work even if you don't have data! I find it problematic
thank you, bro. You rock.
Thank you :)
eres un pro
super....
Super duper hit video
Thank you.... :)
@@codewithdarshil8708
Hello sir
Mujhe is me back button insert karna he kese kare?
Please tell me.
Please
@@codewithdarshil8708
code please
Very useful and helpful, if we use this class for multiple layouts and API,s how can we fix
Perfecto! suscrito
little help please...
how do i make it to check in every activity
do i need to paste the same start/stop functions in each and every activities or there's any other way???
Hello, did you get your answer? Please share with me if you resolved the issue.
@@durejagauravable yes I got the solution ✌🏻
@@durejagauravable you need to paste that start stop functions in every activity which requires that feature✌🏻
@@creativearts4917 Please tell me how to do this...
@@creativearts4917 No I need without this...
Hello! 👋 When I exit and visit the app again, the notification windows double up. Can you solve this problem? Thank you!
Supper video
Thank you :) Keep learning...
In my case, the project does the exact opposite work; when I turn on the data, the alert dialog pop up and when I turn off the data, after tapping on retry button it works . Can you tell me how to fix it ?
In my case too!!
it happens when you don't put '!' in line 11 of NetworkChangeListener 5:23
Mujhe aap ki help cahiye
API level 23 and later, new method for connection.
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
public class Common {
public static boolean isConnectedToInternet(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager)
context.getSystemService(Context.CONNECTIVITY_SERVICE);
if (connectivityManager != null) {
Network network = connectivityManager.getActiveNetwork();
NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network);
return capabilities != null && (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)
|| capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR));
}
return false;
}
i want to switch activity this that code also want some delay b/w activities....i tried several times but not work ... Please help me.....🙏🙏🙏
🙏🙏🙏
Hello sir ji
thanks but networkinfo is decraped, dont have a new mode?
Yes, It is depreceated from API 29. I will create new video accordingly. Thank you for sharing!
@@codewithdarshil8708 make it fast bro
@@codewithdarshil8708 in webview
@@codewithdarshil8708 hey can I get your insta ID
@@codewithdarshil8708 did you create new video?
Hello sir
Bhai back button click karne par back hi nahi ho raha hai Kya kare
Hello
my internet connection is on but show the dislog layout
It is designed using "Retry" button.
Please provide me code
Please sir
bro github link
I need the source code
sir mere mobile m ulta kaam kr raaha ha
matlab jab internet hota h to inertnet dialog aata h
aur jab internet nhi hota tab nhi aata
m kya kruu
Please watch it again carefully.🙂.
@ashif khan
in NetworkChangeListener class if condition check shoud be (!Common.isConnectedToInternet(context))
check that condition
@@AndroiTGujarati Got the solution. Thanks.
Working great but retry button is not reloading it simply disappear I want to reload the webpage so how to do that ?
Please help 🙏
Hi,
After dialog.dimiss(), just add code to reload activity or fragment. Hope this will help.
Are u done this?
git rep? are we supposed to copy this code from the video lol
sir jab wifi on hota he tab bhi dialog show krta he esa q
It is designed with "Retry" button to re-check connectivity.