How can I monitor the network connection status in Android?

Viewed 33680

I have a Service that is downloading a file from a server. I warn the user to only download the file over Wireless LAN before the download starts.

My problem is that my download gets stuck if I loose the network connection. Is there a way to listen for changes in network connection or if it is lost entirely?

1 Answers
Related