コード例 #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);
        }
コード例 #2
0
 public MyBoundService(HTTPService s)
 {
     this.service = s;
 }
コード例 #3
0
 void IServiceConnection.OnServiceDisconnected(ComponentName name)
 {
     myService = null;
     handler.RemoveCallbacks(this);
 }