1. Download our Official Android App: Forums for Android!

Apps What class to use to run endless task on Android device

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

  1. horatio

    horatio Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    17
    Joined:
    Feb 28, 2010

    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?
    Rank:
    None
    Points:
    513
    Posts:
    7,973
    Joined:
    Nov 29, 2009

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

    Baylro1970 Newbie
    Rank:
    None
    Points:
    35
    Posts:
    22
    Joined:
    Feb 22, 2010

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

    Rick
     

Share This Page

Loading...