Skip to content Skip to sidebar Skip to footer

Android Network Reachability (offline Mode)?

So I am calling few different web services in my app but I want to check if the device is able to connect to internet before service is called. First I created a static Flag. publi

Solution 1:

Create a BroadcastReceiver responding to the action <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>

Hope it helps!

Post a Comment for "Android Network Reachability (offline Mode)?"