Exemple #1
0
        protected override void OnStop()
        {
            try
            {
                _findAllBeacons.Stop();
            }
            catch (RemoteException)
            {
                Log.Debug(Tag, "Error while stopping ranging");
            }

            base.OnStop();
        }
Exemple #2
0
 public override bool OnOptionsItemSelected(IMenuItem item)
 {
     if (item.ItemId == Android.Resource.Id.Home)
     {
         Finish();
         return(true);
     }
     if (item.ItemId == Resource.Id.refresh)
     {
         LookForBeacons();
         return(true);
     }
     if (item.ItemId == Resource.Id.stop)
     {
         _findAllBeacons.Stop();
         return(true);
     }
     return(base.OnOptionsItemSelected(item));
 }