Skip to content

ldo/memory_hog_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Hog is a test Android application to try to allocate large
amounts of memory. This forces activities in the back stack to be
terminated, so you can check that they properly handle
onSaveInstanceState and onRestoreInstanceState calls.

NOTE THIS APP COULD BE A LITTLE DANGEROUS. Have a running “adb logcat”
display so you can watch the system log on your device. Start with a
small allocation (e.g. 20MiB), and try doubling it until you see
“Process <package-name> (pid nnn) has died” and “Low Memory: No more
background processes” messages. This would be a good point to stop. Go
further, and you can kill every UI process, including the launcher. Of
course, in my testing, everything automatically restarted as necessary
without obvious ill effects, but be warned.

Contents:
    src/ -- Java sources for the Android app
    jni/ -- C sources for the Android app
    res/ -- resources for the Android app
    AndroidManifest.xml, build.xml, *.properties -- for driving
        Google's Android build tools (note that you will have to
        provide a couple more of these--see INSTALL for details)
    README -- this file
    INSTALL -- build/installation instructions
    LICENSE -- licence (Apache 2.0, same as Google's sample code)

Like the icon? It's by Tehkseven--more here
<http://www.tehkseven.net/news/12-stunning-icon-packs-for-android-phones>.

Lawrence D'Oliveiro <ldo@geek-central.gen.nz>

About

Android memory-hogger test app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published