Forums Register Login

maintaining custom view state after phone rotation

+Pie Number of slices to send: Send
Hello,

I am trying to find the best way maintain state on my custom view when users rotate their phone. The custom view has an instance variable which is of type Board (my creation). Board in turn contains instance variables which are custom objects themselves. I looked into the Parcelable approach but it doesn't appear possible to "chain" Parcelables for recreating my object graph. Another idea that came to mind would be to use onRetainNonConfigurationInstance() to store the custom view itself, but after that thought, I felt I had to take a shower. I'm pretty new to Android so I am looking for other possible approaches.

Thanks, Eric
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 916 times.
Similar Threads
Update an image file
Jumping Problem
facelets custom tags state restoring problem
Checkers game.
problem with OTA download Midlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:03:14.