Comments (4)
Sorry for the delay replying, only just noticed this. Have you seen this again
since? It's inside the Android core LocationManager library which of course
shouldn't happen.
Original comment by [email protected]
on 1 May 2013 at 8:12
from little-fluffy-location-library.
it is happening on very rare occasions don't know possible rooted devices.
offtopic
have you received some reports that your lib is draining battery becouse of
gps is alive ? i had some htc jellybean device reports ...
i fixed that by adding fev lines that kill singleRequestUpdate in
LocationBroadcastService #134 after a while
locationManager.requestSingleUpdate(criteria, oneshotReceiver);
if (LocationLibrary.showDebugOutput)
Log.d(LocationLibraryConstants.TAG, TAG + ": schedule timer to kill
locationlistener");
new Timer().schedule(new TimerTask(){
public void run(){
try{
if (LocationLibrary.showDebugOutput)
Log.d(LocationLibraryConstants.TAG, TAG + ": remove updates after minute");
locationManager.removeUpdates(oneshotReceiver);
}catch(Exception e){
e.printStackTrace();
}
}
}, 60000);
Original comment by [email protected]
on 2 May 2013 at 6:58
from little-fluffy-location-library.
Android 4.2.1 never stops asking for a one-shot update. This looks like a good
solution to it. I will include this in a future release. Probably within the
next month. Thanks for the tip!
Original comment by [email protected]
on 2 May 2013 at 12:33
from little-fluffy-location-library.
I implemented your excellent "off-topic" suggestion in v15 :-)
Original comment by [email protected]
on 4 Jun 2013 at 12:39
- Changed state: Fixed
from little-fluffy-location-library.
Related Issues (20)
- Additional information in LocationInfo HOT 1
- Get location shown in google maps HOT 3
- Gradle support HOT 12
- Add support for google play services location client (aka fused location provider) HOT 4
- Grabbing the GPS provider HOT 2
- Indoor GPS HOT 4
- gps problem HOT 1
- Not connected. Call connect() and wait for onConnected() to be called. using the trunk version. HOT 1
- OutOfMemoryError HOT 1
- maven HOT 5
- Last know location HOT 2
- Not working in some Android devices HOT 5
- NumberFormatException HOT 1
- null pointer Exception from LocationBroadcastService -> gms HOT 8
- IllegalStateException from GMS
- NoSuchMethodError: iterator
- Find Crash in app due to LocationBroadcast service disconnected HOT 6
- InitialiseLibrary with AlarmFrequency Parameters HOT 1
- LocationBroadcastService keeps running infinitely when LocationService is turned off HOT 1
- Null pointer exception
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 little-fluffy-location-library.