I been using notification listener for a while now and notice that it uses a lot of ram, even when my app is closed, some times it gets to 200mb+ and slowly(really slow) go down but still consume a lot of ram.
This happen because the listener by it self consume that much ram? Or maybe I have to much code running in the service(Don't think so).
You should not worry about it unless you get an out of memory errors. The OS keeps the process running and the GC (garbage collector) doesn't immediately release memory if not needed.