Awesome tutorial but i have one question. I want to check the internet connection again and again during user use to app. And if user turn off connection show error message to turn on connection
I know it's late, but maybe it still helps you or someone else. For this you would need to register a Broadcast Receiver (for it to work over the whole app I suggest to initialize it in the Application class). As it is a lot to explain for a yt comment, here is a link: ruclips.net/video/11Oe40o8RJo/видео.html&ab_channel=CodinginFlow Good luck!
this is a bad method and not working properly , there are some cases where users are connected to a network, but the network may not have access to the internet. for example : user enabled mobile data, but he or she has is no data balance. the device is on a roaming network, and data roaming has been disabled. some wifi networks ask for sign-in information. In this case, users cannot access the internet until the credentials are provided. so, we should check if the network has access to the internet ....
Awesome tutorial but i have one question.
I want to check the internet connection again and again during user use to app.
And if user turn off connection show error message to turn on connection
I know it's late, but maybe it still helps you or someone else.
For this you would need to register a Broadcast Receiver (for it to work over the whole app I suggest to initialize it in the Application class). As it is a lot to explain for a yt comment, here is a link:
ruclips.net/video/11Oe40o8RJo/видео.html&ab_channel=CodinginFlow
Good luck!
u should extend live data ....read about live data & internet connectivity
I have a landline phone I only want to use wifi internet on here. Can you please help me?
this is a bad method and not working properly , there are some cases where users are connected to a network, but the network may not have access to the internet. for example : user enabled mobile data, but he or she has is no data balance. the device is on a roaming network, and data roaming has been disabled. some wifi networks ask for sign-in information. In this case, users cannot access the internet until the credentials are provided. so, we should check if the network has access to the internet ....
deprecated already.
This is a deprecated approach.
what the new approach ... and what the logical error im the old approach ty