Using GPS in android application
<p>I am currently working on using GPS in android application. In android docs I saw the following line
LocationProvider locationProvider = LocationManager.NETWORK_PROVIDER; </p>

<p>// Or, use GPS location data: </p>

<p>// LocationProvider locationProvider = LocationManager.GPS_PROVIDER; </p>

<p>locationManager.requestLocationUpdates(locationProvider, 0, 0, locationListener);</p>

<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>
