Is onDestroy() also indicate to the Garbage collector that the Activity object should be collected?

289 Views Asked by At

I'm trying to understand, if a class that extends Activity has attributes, and while working with the application those attributes are being set (values are different from null), if the Activity is being destroyed (let's say the user press on back button and left the application), is the Activity object is being collected by the GC? Are the values that were set for those attributes are still have the values they had before the onDestroy()

1

There are 1 best solutions below

1
Fisnik Ibishi On

Check the documentation here: onDestroy()