Tuesday, June 2, 2020

[PROFILE] Listen For Volume Changes Dynamically v1.0

DESCRIPTION
With this profile you can listen for volume changes on every channel, retrieving: current audio channel, last value changed and also the previous (old) value before it got changed. And with a single profile.

As the profile is right now, it only shows the above mentioned data, so its usefulness will be reduced to that. But it may be useful to you in a future project or profile where you need to identify the audio source or the previous level when it has changed.

Notes:
- I don't know why the intent is sent more than once when changes are detected (not documented, or I couldn't find the reason), so a delay of 20ms (optional) is included at the top of the actions within the linked task.
- The intent is categorized as @hide (not officially documented) and has three extras "officialy" reported: EXTRA_VOLUME_STREAM_TYPE, EXTRA_VOLUME_STREAM_VALUE and EXTRA_PREV_STREAM_VOLUME. But it is sent with an additional extra for me: EXTRA_VOLUME_STREAM_TYPE_ALIAS. So, you can the use my Intent Broadcast Monitor project to check what extras are sent for you actually, if needed.

CREDITS
@SmartPhoneLover

DOWNLOAD
Profile (XML)
Profile (TaskerNet)

DOWNLOAD (Ads Supported)
Profile (XML)
Profile (TaskerNet)

Related Articles:

  • [PROFILE] Root Checker v1.1DESCRIPTION Some people are having troubles with the Magisk root core being disabled randomly and suddenly, happening across different devices. It will periodically check if the device keeps having root access. Otherwise, a … Read More
  • [PROFILE] Set Random Wallpaper Every Day v1.3DESCRIPTION These profiles set a random wallpaper based on different contexts. Notes: - Wallpapers have to be placed locally. CREDITS @SmartPhoneLover CHANGELOG - New: Method (find cmd) to allow fetching files when there i… Read More
  • [PROFILE] Screen Always On When Tasker Coding v1.0DESCRIPTION It will help the screen timeout to be set to 'infinite' when you are coding into Tasker. Then, when Tasker is exited, it will be restored to the previous timeout set from Android settings. An Initial Setup task i… Read More
  • [PROFILE] Per-App Resolution Changer v1.0DESCRIPTION Change the screen resolution (width, height) dynamically, based on the app used. These are the available versions: • Version (A): Uses a non-root solution (system private interface for WindowManager class: IWindo… Read More
  • [PROFILE] Listen For Volume Changes Dynamically v1.0DESCRIPTION With this profile you can listen for volume changes on every channel, retrieving: current audio channel, last value changed and also the previous (old) value before it got changed. And with a single profile. As t… Read More

0 comments:

Post a Comment