i need to know in a background task if the user muted the ringer by clicking the volume button when a call is coming in. so there are 2 possible events that i could listen for:
- volume button click (onKeyDown) – that would be the preferred method
- ringer gets muted
it seems though that this is not possible. anyone has an idea how to accomplish that?
Thx
Simon
FYI: this is not possible, since the app in the foreground (the Phone app in the moment when the phone is ringing), handles the hardware button click. the event is not passed further.