I’m trying to make my app choose the GPS provider. Method getBestProvider() yields the network provider and method getAllProviders() yields three network providers as well.
Strange thing is that the GPS is enabled in my Samsung GTS5360 device, which is also proven by the isProviderEnabled(LocationManager.GPS_PROVIDER) call. I’m using Android 2.3.6.
My manifest file has both permissions (ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION). I have also implemented a GpsStatus listener which I added to my locationManager object to listen to GPS_EVENT_SATELLITE_STATUS events, but so far nothing is happening.
When I run other embedded GPS applications, GPS works. I have clear sky conditions, sitting on my balcony.
Any suggestions on what is might happening is more than welcome. I can post my code if necessary.
CommonsWare provided the solution to my problem. By setting the correct criteria, ACCURACY_FINE and POWER_LOW, the GPS provider became the provider of choice. Kudos to CommonsWare!