Background application

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

  1. yogeshlanjekar

    5

    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
    38

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

    5

    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
    38

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

    5

    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
    38

    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 New Member
    6

    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 Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    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...