Hi everyone,
I have stumbled across a problem and so far I have not been able to find a solution online. Basically, I want to be able to direct the volume buttons towards my app even if it is inactive. It has been very easy to use the volume buttons when my application is active, but as soon as the screen is locked or you switch apps, this is no longer possible.
I believe that this could be easily fixed in the past by using the method RegisterMediaButtonEventReceiver. However, this method was deprecated in API level 21.
Do you have any suggestions or code to help me out?
Thanks a whole lot in advance!
I have stumbled across a problem and so far I have not been able to find a solution online. Basically, I want to be able to direct the volume buttons towards my app even if it is inactive. It has been very easy to use the volume buttons when my application is active, but as soon as the screen is locked or you switch apps, this is no longer possible.
I believe that this could be easily fixed in the past by using the method RegisterMediaButtonEventReceiver. However, this method was deprecated in API level 21.
Do you have any suggestions or code to help me out?
Thanks a whole lot in advance!