on-internet
← Community

Key listener in Service

Stack Overflow ·

I am new to android and I extensively searched for this. Any help would be much appreciated:) I have a requirement for an application which does the following: An application that runs in the background as a service that listens to the volume key(UP/Down). On this event an activity will be displayed in foreground. [I am able to do this from an Activity, however the activity has to be at the foreground and only after I press the volume button I get a toast.] Please HELP!!!

Comments

Sign in or sign up to comment and upvote.

No comments yet.