@Override public void onTrimMemory ( int Level) { Super .onTrimMemory (Level); Switch (Level) { Case TRIM_MEMORY_COMPLETE: // application is not visible - Low memory - -80- located at the bottom of LRU application may be killed Case TRIM_MEMORY_MODERATE : // application is not visible - low memory - -60- located in the middle of the device the current LRU operating environment less memory Case TRIM_MEMORY_BACKGROUND: // application is not visible - low memory - is located in the top of the LRU, but lowered position -40-- the device is currently operating environment less memory Case TRIM_MEMORY_UI_HIDDEN: // application is not visible in the background -20- program should free some memory Case TRIM_MEMORY_RUNNING_CRITICAL: // application visibility -15- memory is tight - located at the top of the LRU - other processes may be destroyed to get more memory available Case TRIM_MEMORY_RUNNING_LOW: // application visibility - Low Memory -10- located at the top of the LRU - less available memory devices Case TRIM_MEMORY_RUNNING_MODERATE: // application visibility - less memory -5- located LRU top of the system is about to enter a low memory state // the TODO top to bottom can handle some free memory operation BREAK ; } }