Explain the ontrimmemory() method?



Explain the ontrimmemory() method?..

Answer / 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

More Android OS Interview Questions

What is a layout manager android?

1 Answers  


What is not correct about controller in sencha touch?

1 Answers  


What is 9 Patch Image? when to use it? in Android?

1 Answers   SkillGun Technologies,


What is use of rxjava in android?

1 Answers  


What is the difference between a class , a file and an activity in android?

1 Answers  


What is main/java/com.<Project>.<App>?

1 Answers  


how to fetch a contact person number from contact application using content provider?

1 Answers  


Describe the APK format.

1 Answers  


What is hexadecimal color code?

1 Answers  


Can you run exe on android?

1 Answers  


what is a handler thread?

1 Answers  


Do we need api key for displaying google maps in android?

1 Answers  


Categories