am kill-all

Post your questions and help other users.

Moderator: Martin

Post Reply
Akt
Posts: 133
Joined: 25 May 2014 08:57

am kill-all

Post by Akt » 25 May 2014 09:24

Hi
I have made a flow which shows me a overlay widget whenever i launch an app. If i click on that widget it clears the ram. I am facing some problem. When i click on that widget it just hides the widget and perform no action. And it also hangs the phone. Every thing turns blank on homescreen and automagic also takes very much time to start after this.

My device is rooted.

http://automagic4android.com/flow.php?i ... 4d08660caa

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: am kill-all

Post by Martin » 25 May 2014 13:14

Hi,

I would try to simplify the flow and the widget by calling 'am kill-all' directly from the widget and not by changing a global variable that triggers a flow.
To do this, you can select action 'Execute Root Command: am kill-all' in the clickable action in the widget. If you want to execute multiple actions, you could add all actions to its own flow and call the flow using an action Execute Flows from the widget.
Are you running Automagic as a foreground app (notification icon visible in the statusbar)? If not, Android might also kill Automagic itself when 'am kill-all' is executed.

Regards,
Martin

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: am kill-all

Post by Akt » 25 May 2014 13:23

Hi martin
Thanx for your reply...
It was killing automagic itself...

Post Reply