rrreza / little-fluffy-location-library

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

Origin provider name #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
First of all - thanks a lot for a beautiful library, it's really useful.

There is one minor problem. LittleFluffyLocationLibrary uses PASSIVE_PROVIDER 
to determine coordinates. According to developers guide, PASSIVE_PROVIDER "can 
be used to passively receive location updates when other applications or 
services request them without actually requesting the locations yourself. This 
provider will return locations generated by other providers. You can query the 
getProvider() method to determine the origin of the location update"

http://developer.android.com/reference/android/location/LocationManager.html#PAS
SIVE_PROVIDER

It looks like current version of the LittleFluffyLocationLibrary doesn't allow 
to receive origin provider name ("network", "GPS", etc). But sometime it would 
be useful to show real provider name to the user. 

I have attached possible patch that can solve this problem. It adds new field 
originProvider to class LocationInfo. Please check if it worth to make such or 
alternative modification. I am not sure, but probably filling originProvider 
field should be made optional because it's not necessary in most cases...

Original issue reported on code.google.com by dvpubl...@gmail.com on 13 Dec 2012 at 6:46

Attachments:

GoogleCodeExporter commented 9 years ago
Hey, sorry, I've literally only just seen this. I'll try to put it into the 
next release.

Original comment by ken...@kentonprice.com on 1 May 2013 at 8:10

GoogleCodeExporter commented 9 years ago
No problems, thanks a lot

Original comment by dvpubl...@gmail.com on 2 May 2013 at 5:45

GoogleCodeExporter commented 9 years ago
OK this is done in v15 :-)

Original comment by ken...@kentonprice.com on 4 Jun 2013 at 12:38