Clear memory and recent task automatically after an app is closed using Tasker My phone is a Samsung Galaxy S3 on Android 4.1.2 JellyBean. I would want to create a profile which clears memory and recent tasks when an app is closed (example: Chrome).

Is it possible to do it without root access?
I use Clean Master for this. 

You can invoke separate parts of by holding the clean master button when using the launch app function.

then I used this booster

and I used this process cleaner


I know this works because I have an app that crashes on startup if there is insufficient RAM. When I use this it never crashes.

I hope it helps, even after two years.