Check internet connection in background android