Android client and server interaction code, client code