Simple implementation of Broadcast Receiver to check if the device is connected to the Internet. A snackbar at the botton indicates if the device is connected to the internet. Just implement the NetworkStateReceiverListener interface in your activity and override the onNetworkAvailable and onNetworkUnavailable methods to check for internet connectivity in your application.
vivekverma6594 / network-state-receiver Goto Github PK
View Code? Open in Web Editor NEWSimple implementation of Broadcast Receiver to check if the device is connected to the Internet. A snackbar message is show when disconnected and disappears when the device is back online
License: Apache License 2.0