PR contains code taken from #findmybikes and adapted to use activity transition recognition API as well as switching on&off geotracking when some transition happens.
In other terms, it start the GPS when user enter certain activities (walking, biking, driving, ...) and fills the local db with GPS fixes. It can also stop the tracking when the activity is over.
In this version, user activity tracking starts when they log in and stops when they log out.
TODO
[x] fix #13 having to restart app when logging in/out to start/stop foreground service (permanent notification)
Description
closes #13 Tracking - Write to database
PR contains code taken from #findmybikes and adapted to use activity transition recognition API as well as switching on&off geotracking when some transition happens. In other terms, it start the GPS when user enter certain activities (walking, biking, driving, ...) and fills the local db with GPS fixes. It can also stop the tracking when the activity is over.
In this version, user activity tracking starts when they log in and stops when they log out.
TODO