title: Registering LocationListener required?
body: <p>In my application, I only need to get a <code>Location</code> when a certain button is clicked. Do I still need to register a <code>LocationListener</code>, or can I just use something this?</p>
  
  <pre><code>LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  Location position = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
  </code></pre>