Adding Android "isConnected" implementation