Open kallaguntamanojkumar opened 5 years ago
Have you declared service in manifest?
Sorry, my bad, now I have declared service in the manifest and service method is invoked. But I turned ON WIFI and internet s active but still the app showing it doesn't have internet. Could you please help me with this?
Please use my pull request https://github.com/Babar-Bashir/Android-Check-Internet-Connection
Start your service
Intent intent = new Intent(this, ConnectionService.class); intent.putExtra(ConnectionService.TAG_INTERVAL, 10); intent.putExtra(ConnectionService.TAG_URL_PING, "http://www.google.com"); intent.putExtra(ConnectionService.TAG_ACTIVITY_NAME, this.getClass().getName()); startService(intent);
I have the way to have suggested but service is not started. I have verified this by inserting logs in the ConnectionService class. Could you please suggest anything on this?