Did you consider a bit different approach and use alarm manager to wake up
your app after regular interval? If you only need to send device location
to the server this should work just fine.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
Forgive me for my curiosity, but what could be the reason you don't
want to change manifest xml?
And I don't think there are any other ways to do that.
Thanks
On Mar 22, 3:09 am, CaryWang wangjf...@gmail.com wrote:
if i don't want add code to XML.Are there any other method.
2011/3/22 Kostya
Hi,
Gotcha, I misunderstood your problem initially.
You definitely should stop starting new activities from onResume. Why can't
you just update a content of your Views from onResume instead? Also I
personally wouldn't suggest starting new activities when the only thing
changed from a user
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,
4 matches
Mail list logo