4

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.

1
  • 1
    job of garbage collector to free memory Commented Jun 17, 2013 at 11:28

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.