Thank you for clarification Dianne. I am trying to further optimize the app. For example, if screen is off then the app does not really need to connect to the server, but as soon as it turns on it should. With this logic, I have no problem with AlarmManager working while CPU is running, as long as I have this condition in the code. Honestly, I am not sure if this is correct approach... Related question would be how does my app know if screen is on or off? :-) I do not see anything in PowerManager that allows this. Any ideas would be greatly appreciated and thanks again Dianne!
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

