[android-developers] Re: Continuously running service.

2011-04-05 Thread Nick Kulikaev
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.

[android-developers] Re: Wrong widthPixels?

2011-03-22 Thread Nick Kulikaev
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

Re: [android-developers] Re: Refresh previous activity on Back Button Press

2011-03-22 Thread Nick Kulikaev
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

[android-developers] Re: Service stops after 10 minutes of standby

2011-03-21 Thread Nick Kulikaev
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,