title: Using GPS in android application
body: <p>I am currently working on using GPS in android application. In android docs I saw the following line</p>
  
  <pre><code>LocationProvider locationProvider = LocationManager.NETWORK_PROVIDER; 
  
  // Or, use GPS location data: 
  
  // LocationProvider locationProvider = LocationManager.GPS_PROVIDER; 
  
  locationManager.requestLocationUpdates(locationProvider, 0, 0, locationListener);
  </code></pre>
  
  <p>but LocationProvider is an abstract class how come we instantiate LocationProvider, also the 
  first line returns a String to the object locationProvider. Can anyone clear my doubt whether 
  document is wrong or this involves some other explanation</p>