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

    Hi
    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
    Code:
    #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)
      
    Log("Start....")
      
    StartActivity(Main)
    End Sub

    Sub Service_Destroy

    End Sub
    Tanti saluti
    Stefan
     
  3. Roberto P.

    Roberto P. Well-Known Member Licensed User

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