Looking forward to sync up data when app is connected to internet, through either WIFI or Mobile data.
Suppose internet was off initially, when internet is connected:
Is there any OnInternetConnected Event in android which we can subscribe to? What is equivalent to handle similar scenario?
EDIT:
The proposed links suggests checking internet access. If we follow other answer we need to keep polling the device for internet connectivity,
Looking for an event handler to hook into, rather than polling.