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

[Answered] PACTIVE and PENABLED

Answered ... see ... Local vs. Global vs. Built-In ... for explanation.

I find the following task to be very useful. It lists the active profiles and the enabled profiles.

This task works correctly if called directly of called from a shortcut. If it is compiled it silently fails on the PACTIVE and PENABLED calls.

tla-Show-Profile
A1: Variable Set [ Name:%ret To: Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%act To:%PACTIVE Do Maths:Off Append:Off ]
A3: Variable Split [ Name:%act Splitter:, Delete Base:Off ]
A4: Array Process [ Variable:%act Type:Sort Alpha ]
A5: Variable Join [ Name:%act Joiner:%ret Delete Parts:Off ]
A6: Variable Set [ Name:%ena To:%PENABLED Do Maths:Off Append:Off ]
A7: Variable Split [ Name:%ena Splitter:, Delete Base:Off ]
A8: Array Process [ Variable:%ena Type:Sort Alpha ]
A9: Variable Join [ Name:%ena Joiner:%ret Delete Parts:Off ]
A10: Popup [ Title: Text:-- Active Profiles --%ret%act%ret%ret-- Enabled Profiles --%ret%ena Background Image: Layout:tla-Popup-1024 Timeout (Seconds):16 Show Over Keyguard

How do I correct this in the compiled version?

...Thom
 
Last edited:

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