title: How to force a location update on Android
body: <p>Is there an alternative to this call that will force the acquisition of new coordinates from the hardware?</p>
  
  <pre><code>locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
  </code></pre>
  
  <p>The specific problem I'm having is they are using Fake GPS to mock a location.  They turn it off before launching my app, but when my app launches and makes the above call it's still getting the last-given mock location.</p>
  
  <p>Note: We've removed it from the Developer Options as the mock gps provider and done a force quit on it.  We even uninstalled it.  So I'm certain that Android itself is still caching the prior mock value and just feeding that to my app because the phone hasn't moved.</p>
  
  <p>In addition, because there's no mock provider in Developer Options, Android LocationManager is reporting the cached fake location as NOT mocked.  Clearly a huge bug.</p>
  
  <p>What I'd like to do is make a call that FORCES the phone to turn on GPS and acquire new coordinates.  Unfortunately I don't see any way to do this...</p>