Braindump: Save State on Activity Rotation Lifecycle – Android

Posted by in Software

Now I’m trying to write a (more complex) Hello World application for Android following a bunch of internet resources. I’ve read that an Activity has a life cycle (create/start/stop/resume/pause/destroy). This makes sense, because most UI elements (also in other frameworks) can be viewed as having lifecycles. I found out that the activity gets destroyed and re-created every time the screen is rotated. At a first glance, it might seem a bit surprising (particularly for people coming from desktop or web UI), because the tendence is to recycle widgets & stuff….read more