any way to detect volume key presses or volume changes with android service?

前端 未结 4 1844
忘了有多久
忘了有多久 2020-12-09 14:14

Some Android apps generate a notification when the device\'s volume changes and some lock the volume. For the life of me, I cannot find out how that\'s done. Please, can s

4条回答
  •  -上瘾入骨i
    2020-12-09 14:42

    You can capture volume/hardware key events by using accessibility service.

    How to capture key events inside a service?

提交回复
热议问题