1

Activity lifecycle and class properties

view story
linux-howto

http://stackoverflow.com – Any activity can be killed under certain circumstances (e.g. "Other applications need memory"). After this, onCreate is called again on the activity. The documentation says that in this case the "process is killed". Does this mean that the whole Activity instance is gc'ed and constructed again or only the GUI parts? Given: public class MyActivity extends Activity { private SomeClass someProperty = null; @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); if (someProperty == null) someProperty = new SomeClass ( (HowTos)