title: Setting an 'expiry' time of a GPS Location
body: <p>I'm doing a camera application that will automatically geo-tag each picture taken. Using</p>
  
  <pre><code>LocationManager.requestLocationUpdates()    //simply to get the GPS running
  LocationManager.getLastKnownLocation()      //for each picture, to get coordinates
  </code></pre>
  
  <p>is mostly enough to simply pluck out coordinates from the phone as fast as possible, since it is still a camera application and you don't want to waste time getting GPS data.</p>
  
  <p>(Assume using GPS_PROVIDER only, not NETWORK_PROVIDER pls)</p>
  
  <p>However the issue will be if the user enters a tunnel for example and the phone is unable to continue getting updates. 10 minutes later when getLastKnownLocation() is called, I will get an outdated location. </p>
  
  <p>I want to find a way in which I can set an 'expiry' time on the Location, depending on individual comfort level.</p>
  
  <p>In other words, keep using getLastKnownLocation(), but if the data is (for example) more than 5 minutes old, don't bother with it, and I rather have a 'null' location. if the data is 2 minutes old however, that still is fine</p>