Hi Martin, http://developer.android.com/reference/android/os/PowerManager.html
<http://developer.android.com/reference/android/os/PowerManager.html>Please note this warning: *"Device battery life will be significantly affected by the use of this API. * Do not acquire WakeLocks unless you really need them, use the minimum levels possible, and be sure to release it as soon as you can." And I do think you'll want to use a Service. Cheers, James On Tue, Oct 6, 2009 at 7:16 AM, martin <[email protected]> wrote: > > Hi > > I try to develope a fitness application (with music playing and > showing the training time), everthing works fine until the phone goes > into the sleep mode. How can i keep the application (and of course the > phone) awake? Solve this by using a service is probably not useful > cause it's a interval training app and i think the user wants always > to now how much time he has left in the current sequence. > > Thx'n'Grz > Martin > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

