Android code for socket client