ciprig / little-fluffy-location-library

Automatically exported from code.google.com/p/little-fluffy-location-library
0 stars 0 forks source link

Grabbing the GPS provider #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
final LocationInfo locationInfo = (LocationInfo) 
intent.getSerializableExtra(LocationLibraryConstants.LOCATION_BROADCAST_EXTRA_LO
CATIONINFO);

locationInfo.lastProvider will always return "network" even if GPS is on.

Original issue reported on code.google.com by joshMiec...@gmail.com on 22 Nov 2013 at 5:39

GoogleCodeExporter commented 8 years ago
What is the fix here?

Original comment by ackim.wi...@gmail.com on 10 Jan 2014 at 3:31

GoogleCodeExporter commented 8 years ago
You can call LocationLibrary.useFineAccuracyForRequests(true) to force fine 
accuracy where available. Note that in the next update the provider will 
usually be "fused", since it's using Google Play Location where available, and 
even though it requests fine accuracy if you set that flag, I think it will 
always say "fused" anyway.

Original comment by ken...@kentonprice.com on 25 Feb 2014 at 12:29