Google I / O 2011: Memory Management for Android Applications

Patrick Dupree

Android apps have more memory than they ever have, but are you sure you use them wisely? This talk will cover memory management changes in Gingerbread and Honeycomb (Sync GC, custom heap bitmaps, "largeHeap" option) and explore tools and technologies to limit memory usage for Android applications.


  1. Reply

    He says "mark and sweep" at 7:51, that's how the mechanism of selecting and eliminating from the tree is called. ("Marks" the objects collectable by the GC, and then "sweeps" the allocated memory)

  2. Reply

    I'm looking at the code of a former developer who has left the company and he commonly practices the use of two system.gc(), back to back. What's up with that?

  3. Reply

    When I run my app I get this "E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!!" but my app doesn't crashes, I have days analyzing the my app with Eclipse MAT, looking for holding references and bundle extras but I can't find what is the cause of the error, thee heap starts at 14253K and airses to 20000k but then stop there and the error appears, could someone help me with this please? more detailed information of the problem is here

  4. Reply

    I am a beginner and I don't properly understand how to manage memory. This video was very helpful but I want to study it properly from the start. Can anyone please share some good links or resources? 

  5. Reply

    There is something about the way he speaks that makes me want to listen and not fall off to sleep, unlike how I feel with some of the other speakers.

  6. Reply

    It is fairly simple assuming you know a small bit about either command line and/or environment variables.

    In the Android SDK that you download, there is a program called hprof-conv.exe, either directly go to this directory through command prompt, and execute the command which he shows in the video, or add the directory path of the file to your system Environment variables so it can be executed anywhere within command prompt directories.

  7. Reply

    Fuck java's garbage collection. They actually made memory management MORE difficult than in C/C++. Can I please just force-free shit I know I am done with, and all references become invalid?

  8. Reply

    It's all about context.
    Listen to the lines before that one as well. The message is: you shouldn't explicitly start the garbage collector.

  9. Reply

    The guy says the hprof conversion process is "easy" yet doesnt give a thorough explanation as to how to it, Ive been trying to convert it for over a day with no luck

  10. Reply

    Great talk and pretty helpful. Doesn't the voice of the guy who asked the questions around 51mins in really remind anyone else of Agent Smith from The Matrix?

Leave Comment

Your email address will not be published. Required fields are marked *