I understand that Android Activities
have specific lifecycles and that onCreate
should be overridden and used for initialization, but what exactly happens in the constructor? Are there any cases when you could/should override the Activity
constructor as well, or should you never touch it?
I'm assuming that the constructor should never be used because references to Activities
aren't cleaned up entirely (thus hampering the garbage collector) and that onDestroy
is there for that purpose. Is this correct?