Hi guys,

I need to create a new background service that listens to some events
(lock/unlock key event, notifications like missed calls, messages, rss
feed etc. and some sensor events) and takes some actions on the
occurrence of these events. My questions are

1)  How can I make this service run forever (can I do so without using
wake locks)?
2)  How can I listen to lock/unlock key event and notifications like
missed calls, messages, rss feed etc in my service?
3) How can I check if the screen lock is on or off and how can I turn
this lock on/off in my service?
4) Should I implement this new service by extending the
'PowerManagerService' if I need to turn on/off the lcd and backlight
in the new service?

5) Instead of creating a new service , would it be a good idea to
modify the 'PowerManagerService' so that it listens to the events
(lock/unlock key event, notifications like missed calls, messages, rss
feed etc. and some sensor events) and executes a state machine on the
occurrence of these events?


I am sorry for asking so many questions in this post but I'll be
really grateful for your thorough answers.

Regards
Leo

-- 
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

Reply via email to