public void OnApplicationQuit()
 {
     if (subscribedToOrientationManager)
     {
         OrientationManager.UnregisterObserver(this);
         subscribedToOrientationManager = false;
     }
 }
 public void StopObserving()
 {
     OrientationManager.UnregisterObserver(this);
 }