Beispiel #1
0
        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);
        }
Beispiel #2
0
 public override IBinder OnBind(Intent intent)
 {
     connection = new MyBoundService(this);
     return(connection);
 }