0

My application runs in the background and gets a notification when the volume on the device changes. The service then has to show a warning message based on the volume levels.

What kind of a service should this be.

Thank you.

1 Answers1

0

For achieving this, you need to register a broadcastreceiver. Take a look at this question:

Android BroadCastReceiver for volume key up and down

Community
  • 1
  • 1
Sebastian Breit
  • 6,137
  • 1
  • 35
  • 53