- this is where i get my location data which i can further use in my activity.
This receiver is called from within the service which is actually looking for a GPS location. A GPS location fix is an unreliable bit of information and we cannot be sure when we might get it. it can range anywhere from 5 seconds to 5 minutes or if you are inside a huge structure like a building you might never get it unless you come out. Therefore we use a service because we do not want our location finder to be garbage collected by android.