public void OnConnected()
 {
     mReporter = new StepCountReporter(mStore);
     if (IsPermissionAcquired().BooleanValue())
     {
         mReporter.Start(this);
     }
     else
     {
         RequestPermission();
     }
 }
        public void OnResult(Java.Lang.Object result)
        {
            PermissionResult result1 = (PermissionResult)result;
            IDictionary <PermissionKey, Java.Lang.Boolean> resultMap = result1.ResultMap;
            PermissionKey permKey = new PermissionKey(HealthConstants.StepCount.HealthDataType, PermissionType.Read);

            if (resultMap[permKey].BooleanValue().Equals(Java.Lang.Boolean.False))
            {
            }
            else
            {
                mReporter.Start(mStepCountObserver);
            }
        }