Android Question When i reboot my phone,the service is not run

Discussion in 'Android Questions' started by fash866, Apr 19, 2015.

  1. fash866

    fash866 Member Licensed User

    Hi:
    I create a service , and define it's auto run ,like:
    #Region Service Attributes
    #StartAtBoot: true
    #End Region

    but it's no effect.
    The service is run ok when the app started or activity.finish.
     
  2. fash866

    fash866 Member Licensed User

    This is the telephone's problem, It's refused auto start.
     
  3. NJDude

    NJDude Expert Licensed User

    Note that the app has to run at least once for that to take effect, that's a security feature to prevent malicious apps to run silently in the background.
     
    Peter Simpson likes this.
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is even more strict. If the user has explicitly killed your app (with the built-in task manager) then your app will not start until it is started by the user.
     
    ArminKH and NJDude like 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