Logger stops responding while in background
Steps: 1 Start logger 2 Switch to another app which uses GPS (gps navigator for example) 3 After while try to switch back to the logger by selecting it from notification area
In my case only black screen appears and after about minute android prompts me to force close non responding app. But, in notification area I still see GPS coordinated changes. Also, at some point logging to the file stops, so after killing app I see only partial file.
I am having the exact same issue.
I have exactly same issue but with some other circumstances. I run gpslogger, press home and lock device. After that I can't enter gpslogger, only black screen and not responding screen popup (force close, wait and report). My device is huawei U8650, Cyanogenmod 7.1.0
What time and distance are you using for the updates? Is it something like 0 seconds (as frequently as possible)? If that's the case, try upping the frequency a bit to 1 or 3 or 5 seconds.
Thank you will try. I was using 0 seconds, then reinstalled and left default value. For now it is working.
Well this raises a good point too. I am going to disallow 0 second intervals :D
The method in which I have rewritten logging should now still allow 0, so I have reinstated 0 seconds and will test this. I might still set it back to a minimum of 1 second before deploying to market.
For me setting interval to 1 sec worked too, but one point each 1 sec isn't enough sometimes. Can you consider some milliseconds intervals?
I spent today testing 0 seconds and the test was unsuccessful - using 0 second frequencies will still lock the app's UI. I will try 500 milliseconds next. It will be an experiment to see how low I can go. At some point you reach hardware/OS limitations on how fast the processing of the point can occur.
If so, may be buffering and automatic raising and lowering intervals may help?
I believe the culprit for the non-responsiveness was the way in which the files were being written. I had changed the file to be written using DOM which loads the entire file into memory. I have changed it back to the way it used to be - writing directly to disk. It is messy but it is faster.
I am now testing with 0,0 and it seems to be responsive. I am reasonably confident that the issue you were experiencing will go away with this commit. I will test this over the course of the day tomorrow to simulate real world scenarios.
Part of the problem is not knowing the full impact of changes being made, integration testing is not easy on GPSLogger.
Addressed in 61d7fa810deda6782eb49fca030a69e1af6307ae and 1ad231e54e670ba9d983f35c77d748476317ada1