title: Listening to volume button events android
body: <p>I saw this topic </p>
  
  <p><a href="https://stackoverflow.com/questions/10154118/listen-to-volume-buttons-in-background-service">Listen to volume buttons in background service?</a></p>
  
  <p>and know the way to listenting to volume keys in background service is to detect the amount of system volume(or music...) and see if it decrease or increase we can detect buttons </p>
  
  <p>i see an app that detects pressing volume up/down button together in locked mode or screen off and it is using AccessibilityService. how it is possible?</p>
  
  <p><a href="https://play.google.com/store/apps/details?id=in.blogspot.anselmbros.torchie&amp;hl=en" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=in.blogspot.anselmbros.torchie&amp;hl=en</a></p>