S scottie Member Licensed User Longtime User Jul 15, 2019 #1 https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#post-628468 Android Tutorial Background location tracking Discussion in 'Tutorials & Examples' started by Erel, Nov 29, 2018. This works but, all the activity in Main module stops? I have a simple timer in main that stops processing when i switch to another app, but the 'service' in starter keeps working(updating notification) Dont understand why just Main module stops? How do I keep it working like the starter service? When i switch back to my app the Main resumes where it left off.
https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#post-628468 Android Tutorial Background location tracking Discussion in 'Tutorials & Examples' started by Erel, Nov 29, 2018. This works but, all the activity in Main module stops? I have a simple timer in main that stops processing when i switch to another app, but the 'service' in starter keeps working(updating notification) Dont understand why just Main module stops? How do I keep it working like the starter service? When i switch back to my app the Main resumes where it left off.
Peter Simpson Expert Licensed User Longtime User Jul 15, 2019 #2 When an activity is not visible to the user it wil be stopped, that's how Android works, that why you are supposed to stored things like timers in the Starter module @scottie. https://www.b4x.com/android/forum/pages/results/?query=Activity+cycle Upvote 0
When an activity is not visible to the user it wil be stopped, that's how Android works, that why you are supposed to stored things like timers in the Starter module @scottie. https://www.b4x.com/android/forum/pages/results/?query=Activity+cycle
S scottie Member Licensed User Longtime User Jul 15, 2019 #3 Peter Simpson said: When an activity is not visible to the user it wil be stopped, that's how Android works, that why you are supposed to stored things like timers in the Starter module @scottie. https://www.b4x.com/android/forum/pages/results/?query=Activity+cycle Click to expand... Dude! You really helped me. Thanks Upvote 0
Peter Simpson said: When an activity is not visible to the user it wil be stopped, that's how Android works, that why you are supposed to stored things like timers in the Starter module @scottie. https://www.b4x.com/android/forum/pages/results/?query=Activity+cycle Click to expand... Dude! You really helped me. Thanks
DonManfred Expert Licensed User Longtime User Jul 16, 2019 #4 scottie said: all the activity in Main module stops? Click to expand... Code in an activity can only run when the activity is the visible one. Learn about the activity lifecycle as @Peter Simpson suggested. Upvote 0
scottie said: all the activity in Main module stops? Click to expand... Code in an activity can only run when the activity is the visible one. Learn about the activity lifecycle as @Peter Simpson suggested.