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)
Tuesday, June 2, 2020
[PROFILE] Listen For Volume Changes Dynamically v1.0
June 02, 2020No comments
Related Articles:
[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] Get All Intent Extras v1.0DESCRIPTION This profile will allow you to get all the extras sent within a given intent (broadcast). Limitations: • Tasker can only receive intents which are sent to broadcast receiver components, not to activities or servi… Read More
[PROFILE] Per-App DPI Changer v1.0DESCRIPTION Change the screen content density (DPI) dynamically, based on the app used. These are the available versions: • Version (A): Uses a non-root solution (system private interface for WindowManager class: IWindowMana… 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
[PROFILE] Detect Clear All Apps From Recents v1.0DESCRIPTION This profile will be triggered when all the apps are cleared from recents, at once. Notes: - As logcat components and filters may change from device to device, here you have a compatibility list. CREDITS @SmartP… Read More
0 comments:
Post a Comment