Many people notice EditText in their action, which holds a strong link to the activity even after its completion. To be clear, this EditText is inside the layout and is overpriced; there is no Listeners set. This only happens on certain devices, for example. Samsung Galaxy S4 (Android 4.2.2) and others. Many reports about this have not yet been resolved. First, here are some helpful posts. (In the end, the GC will clear this, so it's not technically a leak, but for large memory applications, it lasts a long time and will call OOM)
Samsung Android memory leak in EditText
Why EditText maintains the context of its activity in the Ice Cream sandwich
EditText causing a memory leak
Possibility of raw memory leak
These solutions do not work for all devices. It comes down to the Edittext observer. I think there may be a solution in overriding this Watcher and then a function to clear it onDestroy (). Please help here, I have been on this for several days.
Here is the MAT histogram

android memory-leaks android-edittext
Mobdev
source share