Android Question Background location tracking

Discussion in 'Android Questions' started by scottie, Jul 15, 2019.

  1. scottie

    scottie Member Licensed User

    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.
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Erel, mangojack and DonManfred like this.
  3. scottie

    scottie Member Licensed User

  4. DonManfred

    DonManfred Expert Licensed User

    Code in an activity can only run when the activity is the visible one.
    Learn about the activity lifecycle as @Peter Simpson suggested.
     
    Peter Simpson likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice