paktan / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Stops tracking when i background #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I haven't bin able to find a pattern yet for when the bug occurs but will 
comment if I do, but I figure others have this bug as well. When the app is in 
the background it occasionally stops tracking. It probably have something to do 
with the activity doing the logging being killed or app relaunching and not 
resuming when returning. 

What is the expected output? What do you see instead?
When app is running in the background it should continue tracking. Right now it 
looks like it does but when looking at the track in the map view in the app it 
shows a straight line for part of the track. 

What version of the product are you using (See "About" screen)?
v0.5.7

Make/model of your device, and Android version?
Samsung Galaxy S3 running stock Android 4.0.4.

Please provide any additional information below.

Original issue reported on code.google.com by b.lind...@gmail.com on 17 Jul 2012 at 5:39

GoogleCodeExporter commented 9 years ago
I have to add that this is truly a serious problem. 

When using OSMTracker to do some OSM logging during the vacation I found out 
afterwards that OSMTracker failed to log several of my trips due to this bug. 
It really makes you loose confidence in the app, which will lead to that you 
have to stop use it eventually. I don't mean to sound harsh since I really 
enjoy the app but I want to emphasize the seriousness in this bug and hope a 
solution to it is found in the near future.

Original comment by b.lind...@gmail.com on 17 Jul 2012 at 6:22

GoogleCodeExporter commented 9 years ago
I tried today on a Galaxy Nexus running 4.1 and couldn't reproduce it.

What do you mean by "background" ? Does it mean that the phone goes to sleep 
with OSMTracker running ? Or does it mean that you are doing other stuff 
(internet, other apps, etc.) while it's tracking ?

There's supposed to be a small icon for OSMTracker in the notification when 
it's running in background, was this icon displayed ?

Thanks.

Original comment by nicolas@guillaumin.me on 26 Jul 2012 at 10:37

GoogleCodeExporter commented 9 years ago
It's when I'm doing other stuff on the phonewhile OSMTracker tracks. The 
OSMTracker icon is in the notification bar all the time.

Original comment by b.lind...@gmail.com on 27 Jul 2012 at 5:18

GoogleCodeExporter commented 9 years ago
OK I reproduced it today, I thought initially it was when the phone went to 
sleep but it's indeed when you use other apps.

Original comment by nicolas@guillaumin.me on 28 Jul 2012 at 3:21

GoogleCodeExporter commented 9 years ago
Issue 178 has been merged into this issue.

Original comment by nicolas@guillaumin.me on 28 Jul 2012 at 3:25

GoogleCodeExporter commented 9 years ago
I think I fixed it by using Service.setForeground().

Please re-test once the new version is on the market and re-open if needed, 
thanks !

Original comment by nicolas@guillaumin.me on 28 Jul 2012 at 11:35