I want to write an android service at is activated when the internet connection goes down, and displays another activity to user when that happens. I don’t know how to start to write this service. Can any one give me an idea or better tutorial how to catch the connection down within Android service.
Thanks
When Internet connectivity changes, the system sends out a broadcast with an
android.net.conn.CONNECTIVITY_CHANGEintent. You should be able to create a broadcast receiver that will be called whenever the device is connected or loses its connection.