Background application


Last Updated:

  1. yogeshlanjekar

    yogeshlanjekar Member This Topic's Starter

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    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

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23
  3. yogeshlanjekar

    yogeshlanjekar Member This Topic's Starter

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    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

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23
    What would you want to do with this application?
     
  5. yogeshlanjekar

    yogeshlanjekar Member This Topic's Starter

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    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

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23
    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

    Joined:
    Oct 11, 2010
    Messages:
    3
    Likes Received:
    1
    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

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    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...