As Nick mentioned, you'll want to look into a wake lock. I would highly recommend Mark's implementation with WakefulIntentService ( https://github.com/commonsguy/cwac-wakeful). I'm using it in my app with no issues at all.
-- Chris Stewart http://chriswstewart.com On Mon, Mar 21, 2011 at 11:14 PM, Roger Podacter <rogerpodac...@gmail.com>wrote: > I think there is something extra that needs to be added to keep your > service running in deep sleep standby. Cause my service also stops > running on my nexus one once the phone goes into deep sleep. My > service actually takes 2 second sample readings of battery current so > it would be nice to see standby readings. > > On Mar 21, 8:05 pm, Nick Kulikaev <nkulik...@gmail.com> wrote: > > Hi, > > You probably need to obtain a wake lock to keep your service running > > if you want to stick to the design you've already made, but i guess > > what you are trying to do could be also done with alarm manager which > > can wake you up whenever you want. This can save you some battery. > > > > Nick > > > > On Mar 21, 1:56 am, stefan jakober <stefan.jako...@gmail.com> wrote: > > > > > > > > > Hey there, > > > > > I've got a wired problem. I've got a tracking service which sends geo- > > > data to a server every 5 seconds. > > > When I run this service on the HTC Wildfire, there are no problems at > > > all (even when the phone goes standby), but when I use the HTC Desire, > > > the service seems to stop after 10 minutes standby though there is no > > > problem with the service when the phone's active. > > > > > I will try to figure out the problem with testing some other phones, > > > but you guys might have an idea where the problem is and I would be so > > > thankful for every kind of help. I'm stuck on this problem for weeks. > > > > > thank you > > > stefan > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en