• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Tasker tasks that you use and recommend ...

This task reports all 8 volume levels by getting the missing BT Voice level ...

Dev2 (217)
A1: Java Function [ Return:audiomgr Class Or Object:AudioManager Function:new
{AudioManager} (Context) Param:CONTEXT Param: Param: Param: Param: Param: Param: ]
A2: Java Function [ Return:%VOLB Class Or Object:audiomgr Function:getStreamVolume
{int} (int) Param:6 Param: Param: Param: Param: Param: Param: ]
A3: Flash [ Text:a%VOLA b%VOLB c%VOLC m%VOLM • d%VOLD n%VOLN r%VOLR s%VOLS Long:On ]

... Thom
 
This task shows the approach to clearing a section (in example 5,6,7,8) of an array ...

Dev3 (18)
A1: Array Set [ Variable Array:%test Values:1,2,3,4,5,6,7,8 Splitter:, ]
A2: Array Set [ Variable Array:%sec Values:%test(1:4) Splitter:, ]
A3: Array Clear [ Variable Array:%test ]
A4: Array Set [ Variable Array:%test Values:%sec() Splitter: ]
A5: Array Clear [ Variable Array:%sec ]
A6: Flash [ Text:%test() Long:On ]

... Thom
 
Last edited:
Upvote 0
List the %caller() queue for a task ...

Code:
Dev2 (217)
A1: Variable Set [ Name:%tlatask To:Dev2 Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%crlf To:
Recurse Variables:Off Do Maths:Off Append:Off ]
A3: Variable Set [ Name:%tlacaller To:%caller()  Recurse Variables:Off Do Maths:Off Append:Off ]
A4: Variable Split [ Name:%tlacaller Splitter:, Delete Base:Off ]
A5: Variable Join [ Name:%tlacaller Joiner:%crlf Delete Parts:Off ]
A6: Popup [ Title: Text:--- %tlatask Caller ---
%tlacaller Background Image: Layout:tlaPopup1024-2048 Timeout (Seconds):6 Show Over Keyguard:On ]

... Thom
 
Last edited:
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones