server and android code