Curyous
Curyous

Reputation: 8866

Is there an Android equivalent of the iOS didReceiveMemoryWarning?

I want to know when is a good time to release resources on Android. I'd like to keep the memory in use for as long as possible because reloading things does impair the user experience.

The resources I'm talking about here are images, mostly.

Upvotes: 1

Views: 711

Answers (1)

Niko Adrianus Yuwono
Niko Adrianus Yuwono

Reputation: 11112

yes it's onLowMemory() function you need to overwrite.

Upvotes: 4

Related Questions