• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Noob question about services and hardware buttons

GIR

Member
Hello,

I have an app that listens to the play/pause button being pressed, and it works just fine, but only as long as the screen is on.

I've become confused with how to go about making my app still perform its function when the device has its screen off.

I know that there are services, like the SMS notifier that run while the screen is off, so there must be a way for me to have my app do the same.

So my question is : How do i setup my code and/or project to run as this service?

My confusion arises from conflicting information I'vre read about intent filters and services... to me.. at the moment they all seem so similar, and all I've managed to do in the process of following tutorials and other sources is work myself into a ball of doubt over my understanding of these concepts.


Comments/suggestions/tips/code sample/url.... any and all gratefully received.
Thank you for taking the time to read this,
GIR
 
Back
Top