Android Question launch application start-up of the device and launch process in the background

Discussion in 'Android Questions' started by Roberto P., Mar 20, 2015.

  1. Roberto P.

    Roberto P. Well-Known Member Licensed User

    how can I do that an application starts and activates itself when the device and make sure that in the background launches a procedure for reading data from the server?
    Thank You
  2. eurojam

    eurojam Well-Known Member Licensed User

    Ciao Roberto,
    a starting point to your question: add a service modul and set the flag "startAtBoot" to TRUE and then call your activity Main
    #Region  Service Attributes
    #StartAtBoot: true
    #End Region

    Sub Process_Globals
    'These global variables will be declared once when the application starts.
        'These variables can be accessed from all modules.

    End Sub
    Sub Service_Create

    End Sub

    Sub Service_Start (StartingIntent As Intent)
    End Sub

    Sub Service_Destroy

    End Sub
    Tanti saluti
  3. Roberto P.

    Roberto P. Well-Known Member Licensed User

    it's ok. thanks you
  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