I'm trying to check internet connection in activity. And i'm using alerts to turn on Wi-Fi when there is no internet connection.
And I don't know what to do. My program makes 5 or more alerts. What can I do to change it?
I'm trying to check internet connection in activity. And i'm using alerts to turn on Wi-Fi when there is no internet connection.
And I don't know what to do. My program makes 5 or more alerts. What can I do to change it?
To check the Internet Connection the following method will be helpful. Alert Dialog will be called from in the if loop when there is no internet connection to activate the Wifi Connection.