I need to find a GPS location within my app which does not need to be accurate (just around 1km of accuracy) but I need it very fast! (1s-5s)
I register this listener:
mlocListener = new MyLocationListener();
mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener);
mlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, mlocListener);
But that takes too long to find a fix! Does anyone know a method with which I can find the location faster (I basically just need the current town the device is in).
Thanks!
For that you can define your criteria using Criteria.
For more information refer this link.
And then use the provider to fetch your location.
Hope this will help…