1 / 16

Memory Management in Android Apps

Memory Management in Android Apps. Hello!. I’m Lee McCauley I am a software developer and agile practitioner at You can find me at @agileatheist. I was part of the team that built the first Android app for Panera Bread and have recently been helping

mjorge
Download Presentation

Memory Management in Android Apps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Memory Management in Android Apps

  2. Hello! I’m Lee McCauley I am a software developer and agile practitioner at You can find me at @agileatheist

  3. I was part of the team that built the first Android app for Panera Bread and have recently been helping Enterprise Rent-a-Car create a tablet app to make renting a car that much easier. Place your screenshot here

  4. Android is Java (and not Java)

  5. Android is Linux (kinda)

  6. How much memory a process uses is really not clear. Add on top of that paging out to disk (let alone swap which we don't use on Android) and it is even less clear. Thus if you were to take all of the physical RAM actually mapped into each process, and add up all of the processes, you would probably end up with a number much greater than the actual total RAM. -Kyle, Stack Overflow

  7. adb (Android Debug Bridge) Android’s command line interface to your device from another computer

  8. adb shell dumpsys meminfo

  9. adb shell dumpsys meminfo

  10. adb shell dumpsys meminfo

  11. But it’s Java! Doesn’t the garbage collector handle this?

  12. Yes! But...

  13. Biggest memory issues • Anonymous Inner classes (leak) • Hard references to Activities (leak) • Bitmaps scaled UP • Services running in the background

  14. Thanks!

More Related