adspace


Explain the ontrimmemory() method?

Answer Posted / Naushad Alam

onTrimMemory() is a callback method in Android components (Activities, Services, etc.) that gets called when system memory becomes low and the garbage collector attempts to free up resources. The method receives an integer argument representing the current level of memory pressure: TRIM_MEMORY_MODERATE, TRIM_MEMORY_BACKGROUND, or TRIM_MEMORY_UI_DISABLED.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What all devices have you worked on?

1058


Which is the latest version of android?

1086


Which is the latest version of android os?

1046


What did you like better, ice cream sandwich or kitkat?

977