Android Question year 2017, right way to use location ?

Petri Savolainen

New Member
Licensed User
Hi,

started doing b4a just recently and been actively trying different things.

One of the problems for us newcomers is that there are a lot of libraries that seem to be abandonware without clear indication of the situation.

I just tried FluffyLocation, which basically seemed to work ok on my Honor 5c marshmallow but the Ticks never happened. I could get all the locations I wanted by pressing the button, but not anything when location changed or the tick timeout should have happened.
Next I looked at the discussion ... seemed that no one was actually maintaining this library.

So the next thing is to come here and ask "what is the current solution and pattern for using location ?"

I wish that there was a more structured way to find this out.
Maybe some sort of rating-system on libraries ?
Or a list of actively maintained libraries ?
Creating a marketplace for paid (and maintained) libraries ?

best regards,
petri.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Petri Savolainen

New Member
Licensed User
Thanks Erel,

I ended up using the GPS library (since it worked with no problems and was simple enough to understand) from a Service scheduled with "StartServiceAt" at regular intervals. I set the minimum time for GPS to be longer than my scheduled time so I would get a steady stream of readings.
This was relatively friendly on battery and produced good enough results.

best reagrds,
petri
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…