What class to use to run endless task on Android device


Last Updated:

  1. horatio

    horatio Member This Topic's Starter

    Joined:
    Feb 28, 2010
    Messages:
    17
    Likes Received:
    0
    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

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603
  3. Baylro1970

    Baylro1970 Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    From what I have read you are supposed to use a service.

    Rick
     

Share This Page

Loading...