Homepage
Recent Changes
Search:
History of 2016-05-10 Preserving the drawing during screen rotation
2016-05-10
04:30 UTC
Revision 1
. . . .
Marcin Borkowski
–
A rather annoying “feature” of Android is the fact that screen rotation causes recreating the current activity from scratch. While this is quite reasonable, it has an undesired side effect: most data are lost. (What is left is the state of widgets having an id.) In Logeox, this is not what I would like to have: if I rotate my phone (and that might happen by accident!), all my drawings are erased. The problem is: what do I do with it? Quite surprisingly, the solution seems far from obvious. After about an hour of reading and experiments, here’s what I learned and did.