[android-developers] How to save an object in onSaveInstanceState?

2010-06-18 Thread draf...@gmail.com
I have created a small XML parsing application for Android that displays information in a listview and then allows a user to click on the list view and a dialog with further info will pop up. The problem is that when the screen orientation is changed when a dialog screen is open I get a null

Re: [android-developers] How to save an object in onSaveInstanceState?

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 4:31 AM, draf...@gmail.com draf...@gmail.com wrote: However the error still remains, I think I have to save the selected setting from what was selected from the ListView? But how do I save a setting object in onSavedInstance? Most likely, you don't. Instead, use