title: How to get Accelerometer value in Android XAML App(Xamarin.Forms)
body: <p>I want to get accelerometer value at this point in code</p>
  
  <pre class="lang-cs prettyprint-override"><code>private async Task GetValues()
  {
      var locator = CrossGeolocator.Current;
      locator.DesiredAccuracy = 20;
  
      var position = await locator.GetPositionAsync(timeoutMilliseconds: 100000);
  
      //Get accelerometer value here
      var accX = 
      var accY = 
      var accZ = 
  }
  </code></pre>
  
  <p>Please correct me if I am wrong at any place. I don't any experience of using Xamarin neither I have done any mobile development before. I just want to get phone's GPS and accelerometer values and send them to a web service. Any other way of doing this task would be highly appreciated.</p>
  
  <p>Thanks for your time</p>