tags:

views:

65

answers:

2

Hi all,

I am writing an android app which must be always running in the background untill user exit it from the app's menu. But now I notice that in Android after some time my app is stopped by itself without user intervention.

Any idea how to make sure my app will always be running in the background?

Thanks In Advance, Perumal

+3  A: 

You need to run a Service of your own. http://developer.android.com/intl/zh-TW/reference/android/app/Service.html

Konstantin Burov
A: 

As Konstantin already mentioned you are probably looking for a Service. I just wanted to add this link to a tutorial which combines the usage of an Activity and a Service - that might help you (also regarding the adaptation of the androidmanifest.xml file)

Using Android Services

Martin