Comments (7)
Right after creating the instance, can you add
mySimpleLocation.setListener(new SimpleLocation.Listener() {});
and implement the method from that interface SimpleLocation.Listener
? This way, you should be informed as soon as the location has been detected.
Apart from that, please check the permissions, as always.
Does that help?
from android-simplelocation.
I'm having the same problem. In some cases it works perfect and others returns 0.
from android-simplelocation.
@jorgecasariego Did you try the same solution (suggested above)?
from android-simplelocation.
Yes, I read also other issues here. I'm testing now. It isn't always but in some places I receive 0 0
from android-simplelocation.
mySimpleLocation.setListener(new SimpleLocation.Listener() {});
It worked like charm. :-)
But i suggest please add this in the documentation.
from android-simplelocation.
@huxaiphaer Thanks! You're right, that is definitely needed. Sorry that it was missing so far. A paragraph has been added to the documentation in adf899d.
from android-simplelocation.
from android-simplelocation.
Related Issues (20)
- Location not updated in background service HOT 6
- lat, lng is 0 HOT 3
- Location is not giving updated latitude and longitude HOT 1
- Getting latitude and longitude 0.0 HOT 3
- Accuracy HOT 1
- I've just copy+paste the code but returns 0.0 HOT 1
- calculateDistance not found HOT 1
- Cannot resolve HOT 5
- Lat : 0, Lon : 0 HOT 3
- Location tracking failed on background HOT 1
- Speed is 0.0 and interval is not decreased HOT 1
- precise only upto 3 digits of longitude & lattitude HOT 5
- GPS UTC time? HOT 1
- Is this library working on background process HOT 1
- Works only first time then It does not work HOT 1
- Not working in Android 10 real device HOT 3
- passiveMode, what does it mean ? HOT 1
- Cannot resolve method 'getTimestampInMilliseconds()' HOT 3
- Received first coordinates (not 0, 0), but values did not update afterward. HOT 12
- Only Updating very occasionally, despite update interval being set to 500 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-simplelocation.