Default [Q] How apps prevent Garbage collection and service restart

Hi Everyone,

Today, i have come across an application called SlideLock (https://play.google.com/store/apps/d...=com.slidelock) in google play. When i was trying this application, i have noticed that the app is using 80MB in my Moto G and the memory was not garbage collected even at high RAM usage. When i am using Task killer application, still the RAM memory is not collected and the app is not even getting restarted as other third party apps.

I have also noticed the Report option disabled in the service. How did they achieve this in their application? Because, i would like to protect my app service from task killers.

I have found the developer is active at a XDA thread (http://forum.xda-developers.com/show....php?t=2631047). Can you anyone notify them about this post and help me to get the answers?

Regards,
Venkat.