Sample Android application listening internet connection state