How can I deallocate the memory of android resources like TextView
, ImageView
etc inside the onDestroy()
method because they are consuming memory and tell me how to release memory.
Asked
Active
Viewed 502 times
4
-
1job of garbage collector to free memory – Raghunandan Jun 17 '13 at 11:28
1 Answers
1
Garbage Collector will release resources for you.
Just make sure you are not holding references that are no more required.
You can try setting your references to null in onDestroy() call back method.
Also, you can use Memory Analyzer Tool to investigate further.

Nargis
- 4,687
- 1
- 28
- 45