MikeC
MikeC

Reputation: 735

Locating a memory leak in Android

I have an activity that sets the content view to a custom view and passes the context to it. From there multiple objects are instantiated by passing the context to their constructors. As i play my game the memory usage goes up and up starting at around 7mb going all the way to 60 or so before crashing and freezing. I was wondering how can i locate this memory leak and what are the rules on passsing the context from class to class without leaking it.

Any suggestions?

Upvotes: 1

Views: 154

Answers (1)

Kai
Kai

Reputation: 15476

Follow the steps here to analyze your memory usage.

Upvotes: 1

Related Questions