Android: widget update when network connectivity is available

Hello friends,

I have a widget on the main screen that calls a web service and displays some content. Now the problem is whenever the device loses Connection I need to update the widget with the message โ€œNo connectionโ€ and when the device restores I have to update the widget again, calling the web service. Any Ideas, please share.

Thanks in advance

The following link also provides a good solution:

How to control network connection status in Android?

+7
source share

All Articles