/* exemplo da chamada do web service de login */ private void Login(string login, string pass) { myService.Requests.Login(login, pass); currService = HTTPRequests.Services.LOGIN; pingTime = 0; handler.Post(this); }
void IServiceConnection.OnServiceConnected(ComponentName name, IBinder service) { MyBoundService binder = (MyBoundService)service; myService = binder.MyService; myService.Requests.Connect(); currService = HTTPRequests.Services.CONNECT; pingTime = 0; handler.Post(this); }