Matt
I prefer to use the script because even the Task Kill pluggin won't kill certain apps, like Google apps... I use the task below to kill anything... is triggered by a variety of profiles...shake/proximity/AutoVoice... Works 100% but does require root, and also one needs to change the If statement to match their own launcher.
Kill Current App (77)
A1: Run Shell [ Command:dumpsys window windows | grep -E 'mCurrentFocus' Timeout (Seconds):0 Use Root:On Store Output In:%RawDump Store Errors In: Store Result In: Continue Task After Error:On ]
A2: Variable Search Replace [ Variable:%RawDump Search:\S+\. Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In:%RawDump Replace Matches:Off Replace With: ]
A3: Variable Split [ Name:%RawDump1 Splitter:/ Delete Base:Off ]
A4: Variable Set [ Name:%CURRENTAPP To:%RawDump11 Do Maths:Off Append:Off ]
A5: If [ %CURRENTAPP !~ com.sec.android.app.launcher ]
A6: If [ %CURRENTAPP !~ com.teslacoilsw.launcher ]
A7: Run Shell [ Command:am force-stop %CURRENTAPP Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
A8: Flash [ Text:%CURRENTAPP killed Long:Off ]
A9: End If
A10: End If
A11: Stop [ With Error:Off Task: ]