Android Question StartService rules changed in later versions of sdk etc?

Discussion in 'Android Questions' started by Markos, Jul 5, 2019.

  1. Markos

    Markos Active Member Licensed User

    Hi,

    I used StartService quite successfully in recent past to run an app immune to going to sleep or being killed while in background. I have two(2) questions.

    1) StartService is now not allowed and if you execute this command the App will crash?

    2) If the latter is true and I'm using a tcp listener how to do I keep that process alive without having to close and reopen thereby disconnecting all active users?
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Erel likes this.
  3. Markos

    Markos Active Member Licensed User

    Thanx a mil.

    Found my error I used to pass non defined variables in cresting the notification object but now compiler more precise anx makes me use strings ..
     
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