Giter Club home page Giter Club logo

Comments (3)

gefin avatar gefin commented on May 27, 2024

Now i got my enviroment to compile navit. Setting ANDROID_HOME solved the error.

The high load is not a "logical" fail, but android GPS send position updates very often.
A new GPS position is delivered before the function route_set_position() complete on my hardware.

I will try to sort out GPS updates with no or with only minimal position change.

from navit.

OLFDB avatar OLFDB commented on May 27, 2024

https://developer.android.com/training/location/change-location-settings

You could configure Android to send updates only at a specified interval:

Update interval
setInterval() - This method sets the rate in milliseconds at which your app prefers to receive location updates. Note that the location updates may be somewhat faster or slower than this rate to optimize for battery usage, or there may be no updates at all (if the device has no connectivity, for example).

Fastest update interval
setFastestInterval() - This method sets the fastest rate in milliseconds at which your app can handle location updates. Unless your app benefits from receiving updates more quickly than the rate specified in setInterval(), you don't need to call this method.

from navit.

gefin avatar gefin commented on May 27, 2024

I tried to change a line in navit/android/src/org/navitproject/navit/NavitVehicle.java :
sLocationManager.requestLocationUpdates(mFastProvider, 0, 0 , sFastLocationListener);

and replaced 0, 0, with 1000, 1 (minimum 1 second, minimum 1 m between callbacks.
This did not help.

The question is whether this is a general problem at all or whether it is only due to the old hardware. Should I close this?

from navit.

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.