When you call dismiss() on a dialog, besides hiding it, does it also remove it from memory? Does it remove all the Objects that were placed inside the dialog, like ImageViews, Buttons, etc, from memory?
Is there a way i could free up the memory of these objects myself, and not wait for the Garbage Collector to do it’s job?
No, i believe that
dismiss()just hides it.Here is the reference
removeDialog(int)will clear the state.