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

Apps Background application

Discussion in 'Android Development' started by yogeshlanjekar, Oct 5, 2010.

  1. yogeshlanjekar

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Oct 5, 2010

    Oct 5, 2010
    6
    0
    5
    Hi all,
    Can anybody tell me how to run android application in background (like in Blackberry)??
    :):):)
    Thanks and Regards,
    Yogi
     

    Advertisement

  2. id0001

    id0001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    142
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
  3. yogeshlanjekar

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Oct 5, 2010

    Oct 5, 2010
    6
    0
    5
    Thanks for the reply.
    Services can be used for background process which may be supportive to the application. But I want my android application(Activity) should keep on running in background(Invisible to end user). Can you please help me out?

    Thanks and Regards,
    Yogi
     
  4. id0001

    id0001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    142
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
    What would you want to do with this application?
     
  5. yogeshlanjekar

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    6
    Joined:
    Oct 5, 2010

    Oct 5, 2010
    6
    0
    5
    Thanks for the reply.
    I want to pull the data from server at regular time interval while application is running in background and with user is logged in.

    Thanks and Regards,
    Yogi
     
  6. id0001

    id0001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    142
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
    You can set your application to be persistant in your AndroidManifest.xml file. Then the program won't be destroyed when you send it to the background.

    But for regular data pulling you really should use services.
     
  7. francoisc

    francoisc Lurker
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Oct 11, 2010

    Oct 11, 2010
    3
    1
    6
    Yeah I confirm, only a service will be able to do what you want, there are some usefull tuto on the net... but the easier way to learn, is to take an opensource code to see how it s made.
    +
     
  8. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Just to elaborate, a service does NOT require a supportive activity... You can have an app that runs strictly as a service...
     

Share This Page

Loading...