android activities for connecting with server