In my application, I only need to get a Location when a certain button is clicked. Do I still need to register a LocationListener, or can I just use something this?
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Location position = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
That depends on what you need the location for. The LastKnown Location may be from 10 minutes ago. Is that sufficiently good for your purpose? Or do you need the GPS to turn on right now, because my understanding is that call will not turn on the GPS.