What class to use to run endless task on Android device

Discussion in 'Application Development' started by horatio, Mar 2, 2010.

  1. horatio

    horatio Member
    15

    Feb 28, 2010
    17
    0
    15
    Software Engineer
    Dublin
    I am working on some Android project.
    Apart from main Activity (user interface) I have a requirement to endlessly run an important TASK (in background) that every 30 seconds calls REST service to check for new data.
    In case there are any new data the TASK has to notify about this fact the Activity.
    This TASK needs to run even when the Activity was for instance moved to background and finished as a result of lack of device
     

    Advertisement
  2. alostpacket

    alostpacket Over Macho Grande?
    VIP Member
    513

    Nov 29, 2009
    7,978
    3,603
    513
    Android App Developer
    NY
     
  3. Baylro1970

    Baylro1970 Member
    25

    Feb 22, 2010
    22
    0
    25
    Web Developer
    North Dallas (Plano)
    From what I have read you are supposed to use a service.

    Rick
     

Share This Page

Loading...