GithubHelp home page GithubHelp logo

Comments (10)

TjrGithub avatar TjrGithub commented on July 17, 2024

Addendum: I found out I cannot say after all whether Tiny Travel Tracker gets the wakeup / power management right on my phone, for unrelated reasons. In any case, the TTT source code contains plenty of experiments on this topic.

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

Looking at android LocationManagerService it seems that it will not broadcast location if the device is not moving. It also means that minimum distance cannot be set to zero. I will try to cheat and change 0 to 0.01 or so. This may help, but there still will be cases when there will be no updates.
I could of course wake up the device every x seconds and force new location update, but that is something I would like to avoid. This would mean more battery usage.
Logging my tracks I never set distance to "no minimum". If there are no new positions in the log I assume the device is not moving.
I will have to think about it and test more.

from ulogger-android.

TjrGithub avatar TjrGithub commented on July 17, 2024

Hmm, as I read the code, it falls through to true at the end of the function if you set the minimum distance to zero, i.e. 0 is a perfectly valid minimum distance.

The network location backends aren't perfect - the position jumps around randomly depending on which neighbors' wifis happen to appear in the scan, or which of the several cell towers the phone is connecting to. I don't set a minimum distance because I'd like to average such fluctuations away, and/or get a feel for their magnitude.

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

You are right, I misunderstood the logic. I will do some tests to see if I can reproduce your issue.
In the meantime please repeat the tests with the newest version.
There are some delays on f-droid part, but I hope the new version will be available soon.

from ulogger-android.

nmezheri avatar nmezheri commented on July 17, 2024

I noticed the delays on f-droid, and I had to buid the app on my own (by the way it worked).
On the other side may be have the apk here in guithub in addition to f-droid, ex.: https://github.com/ukanth/afwall/releases

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

I did short test with only network provider enabled. Wifi was disabled on the device, so the only source of location was gsm network. Everything worked as expected. I set 1 minute time window and no minimum distance. I left it running for an hour and not a single update was lost, except that they all were above accuracy limit (500 m).

It was on µlogger 1.3, old android 2.3.6. Your problem must be related to different nlp backends on your device. You may try to get some more information by turning debugging on and rebuilding µlogger.

For me it will be difficult to reproduce your issue as I don't have any device that I can use with your setup and it will not work in emulator.

04-10 14:22:42.270 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491826962249,mLatitude=...]
04-10 14:22:42.270 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:23:42.260 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827022256,mLatitude=...]
04-10 14:23:42.260 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:24:42.259 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827082262,mLatitude=...]
04-10 14:24:42.259 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:25:42.290 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827142283,mLatitude=...]
04-10 14:25:42.290 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:26:42.319 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827202308,mLatitude=...]
04-10 14:26:42.319 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:27:42.350 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827262344,mLatitude=...]
04-10 14:27:42.350 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:28:42.340 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827322331,mLatitude=...]
04-10 14:28:42.340 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:29:42.349 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827382346,mLatitude=...]
04-10 14:29:42.349 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:30:42.370 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827442359,mLatitude=...]
04-10 14:30:42.370 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:31:42.390 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827502377,mLatitude=...]
04-10 14:31:42.390 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:32:42.400 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827562393,mLatitude=...]
04-10 14:32:42.400 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:33:42.420 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827622412,mLatitude=...]
04-10 14:33:42.420 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:34:42.429 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827682433,mLatitude=...]
04-10 14:34:42.429 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:35:42.469 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827742461,mLatitude=...]
04-10 14:35:42.469 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
04-10 14:36:42.480 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location changed: Location[mProvider=network,mTime=1491827802475,mLatitude=...]
04-10 14:36:42.480 5918-5918/net.fabiszewski.ulogger D/LoggerService: [location accuracy above limit: 848.0 > 500]
...

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

Regarding f-droid builds we are affected by this issue. I hope it will be fixed soon. If it won't I will provide my own builds. I have not done it yet because it introduces incompatibility, as f-droid builds are signed with different key (users have to uninstall app each time they switch source).

from ulogger-android.

TjrGithub avatar TjrGithub commented on July 17, 2024

I'm more than happy to test things, and I can deal with un- and reinstalling.

Would you please provide such a debug build? (Unfortunately, my computer cannot run Android Studio: 32bit, disk space, etc.)

Also, would you please provide a gnupg public key? Because the logcat of the microg network location services is also relevant, but I'm not comfortable broadcasting where I live.

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

Debug build for latest version:

app-debug.apk.zip

GPG key

from ulogger-android.

bfabiszewski avatar bfabiszewski commented on July 17, 2024

I am going to close this. Please reopen if you have more input.

from ulogger-android.

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.