title: Bind to a Service in Android
body: <p>I have a question about services in Android. I want to know why it’s necessary for to bind the service, and doing a connection to it? I am doing an application with geolocation using a service wich implements the GPS module. And for getting the location I create a variable in the class static and public method static to be called from outside the class, and that is it.
  To retrieve the position from the GPS I just used in my classes:</p>
  
  <pre><code>Location mLocation = ServiceGPS.getLocation();
  </code></pre>
  
  <p>The class ServiceGPS has this method:</p>
  
  <pre><code>public static Location getLocation(){
      return mLocation;
  }
  </code></pre>
  
  <p>Then, why I need to used the bind service?
  Thanks a lot for your help, and sharing your knowledge with me.</p>
  
  <p>BR.
  David.</p>