Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.