[android-developers] Re: Service will not stay running

2009-01-02 Thread Dianne Hackborn
Your saying "the parent activity is killed and the service stops running" sounds like you are trying to keep the service running by binding to it from an activity. If so, that defeats the purpose of the service. If you want a service to remain running on its own, you need to use startService().

[android-developers] Re: Service will not stay running

2009-01-02 Thread bparker
as > > you have disk space > > > DOS> adb logcat > file > > > > > From:bparker > > To: Android Developers > > Sent: Sunday, December 28, 2008 5:21:20 PM > > Subject: [android-developers] Re: Service will not stay

[android-developers] Re: Service will not stay running

2009-01-01 Thread bparker
__ > From: bparker > To: Android Developers > Sent: Sunday, December 28, 2008 5:21:20 PM > Subject: [android-developers] Re: Service will not stay running > > I tried the Logcat app and it seems that it (the app itself) only > keeps about 2 hours worth of data, whereas the Logcat v

[android-developers] Re: Service will not stay running

2008-12-29 Thread Tomei Ningen
You can run logcat in a DOS window. That way it will keep as much log as you have disk space DOS> adb logcat > file From: bparker To: Android Developers Sent: Sunday, December 28, 2008 5:21:20 PM Subject: [android-developers] Re: Service will no

[android-developers] Re: Service will not stay running

2008-12-28 Thread bparker
Yes I'm sure, everything is fine. I have a plain dev phone with nothing else installed but my application, and I'm sure there is never a low memory condition, I've checked top and everything I can think of... also the docs say that your service is supposed to be restarted by the system if a low me

[android-developers] Re: Service will not stay running

2008-12-28 Thread Mark Murphy
Mark Murphy wrote: > bparker wrote: >> I just noticed that the Logcat app itself was just killed as well, >> after not even running for 10 minutes... with the screen off and no >> other activities running. > > U...how are you determining that there are no other activities running? Actually,

[android-developers] Re: Service will not stay running

2008-12-28 Thread Mark Murphy
bparker wrote: > I just noticed that the Logcat app itself was just killed as well, > after not even running for 10 minutes... with the screen off and no > other activities running. U...how are you determining that there are no other activities running? -- Mark Murphy (a Commons Guy) http:/

[android-developers] Re: Service will not stay running

2008-12-28 Thread bparker
I just noticed that the Logcat app itself was just killed as well, after not even running for 10 minutes... with the screen off and no other activities running. The only message I got was: 12-28 20:24:12.760: INFO/ActivityManager(51): Process org.devtcg.tools.logcat (pid 5916) has died. On Dec 2

[android-developers] Re: Service will not stay running

2008-12-28 Thread bparker
I tried the Logcat app and it seems that it (the app itself) only keeps about 2 hours worth of data, whereas the Logcat view in eclipse shows me at least twice that much... but still not enough to catch the service being stopped, which usually takes at least a day or more. Any ideas on how to log

[android-developers] Re: Service will not stay running

2008-12-28 Thread Al
Does Logcat show any reason for killing the Service? You can install Logcat app from http://code.google.com/p/android-random/, which will show logcat on the phone. You can also save the data to a text file, but by default, it saves it to /data/{package-name}/file, which we can't access. You can us