>
Allows you to react to long pressing the physical volume buttons on your device.
To use this event you need to grant the special SET_VOLUME_KEY_LONG_PRESS_LISTENER permission. Check out how to do so here.
Important Note: This doesn't seem to work reliably with the screen off in all situations. It seems to work very reliably if music is playing and less reliably otherwise. This is due to system limitations on those devices and it's not something Tasker can control.
Important Note 2: If you're using Lineage OS or similar make sure to disable its own handling of long pressing the volume keys when the screen is off or it won't work at all with Tasker.
To check out an example of how this can be used check out this video.
WikiD Instuctables is a not-for-profit venture by CommWi Projects. CommWi Projects or any person affiliated with, are not in any official way, affiliated, endorsed, sponsored or licensed by any of the software, hardware, companies or persons documented on this site. Please address any Copyright or IP concerns to myself so they may be dealt with appropriately. Content hosted on this site, unless otherwise stated, is provided under the license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).