Monday, 27 June 2016

Checking internet connection in android

If you are
developing an Android app you may already fetching information from internet.
While doing so there is a chance that internet connection is not available on
users handset. Hence its always a good idea to check the network state before
performing any task that requires internet connection.

You might also want to check what kind of internet connection is available
in handset. For example is wifi currently enabled? or is mobile data network is
connected