Esempio n. 1
0
        public void OnServiceConnected(ComponentName name, IBinder serviceBinder)
        {
            LocationDelegateBinder binder = serviceBinder as LocationDelegateBinder;

            if (binder != null)
            {
                DelegateHandler.ServiceConnected(binder);
            }
        }
Esempio n. 2
0
        public void ServiceDisconnected( )
        {
            Rock.Mobile.Util.Debug.WriteToLog("DroidLocation::ServiceDisconnected() - We are UNBOUND from LocationDelegateService");

            if (DelegateBinder != null)
            {
                DelegateBinder.Service.SetHandler(null);
                DelegateBinder = null;
            }
        }
Esempio n. 3
0
        public void ServiceConnected(IBinder binder)
        {
            Rock.Mobile.Util.Debug.WriteToLog("DroidLocation::ServiceConnected() - We are bound to LocationDelegateService");

            DelegateBinder = (LocationDelegateBinder)binder;

            // give the service an instance of ourselves so it can notify us of events
            DelegateBinder.Service.SetHandler(this);

            // now wait for "OnReady", which means it can being processing our requests
        }