File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes maintaining custom view state after phone rotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "maintaining custom view state after phone rotation" Watch "maintaining custom view state after phone rotation" New topic
Author

maintaining custom view state after phone rotation

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maintaining custom view state after phone rotation
 
Similar Threads
Jumping Problem
facelets custom tags state restoring problem
Checkers game.
Update an image file
problem with OTA download Midlet