check for connection on android