Open tjanson opened 9 years ago
This seems to be working fine. I’ll keep this open for the following improvements:
see also #9 which is related
please have a look at Open W-LanMapp Aplication http://sourceforge.net/p/libwlocate/code/ci/master/tree/master/
I scanned some of the code. They also use a wake-lock, but that’s not surprising.
I’m suspecting that the issue of interruptions in the log is generally not because the app is killed, but because the Wifi scan has problems and doesn’t return within a reasonable time. On my own devices, I’ve never seen the app be killed. Then again, this might be different on other devices and Android versions.
I think we should focus on implementing a warning if no scan result arrives in a certain amount of time. That way, no matter what caused the interruption, at least the user will be informed. (see #9)
Currently location updates & wifi scans are suspended
onPause
. This is impractical for real-world usage. The user should not be forced to have the app in the foreground; instead, logging should continue (until stopped by the user) and a notification should be displayed.