I don't think that would work. You'll need to manually serialize the items.

On Fri, Oct 10, 2008 at 4:49 PM, Mark Hansen <[EMAIL PROTECTED]> wrote:
>
> I think I'm missing something... I want to do something like.  I have
> the list Adapater being set to a custom adapter... so I was trying to
> do it this way..
>
>        @Override
>        public void onSaveInstanceState(Bundle savedInstanceState)
>        {
>                savedInstanceState.putSerializable("listview", (Serializable)
> getListAdapter());
>
>        }
>
>        @Override
>        public void onRestoreInstanceState(Bundle savedInstanceState)
>        {
>
>                setListAdapter((MyCustomListAdapter)
> savedInstanceState.getSerializable("listview"));
>
>        }
>
> On Oct 10, 9:40 am, "Stoyan Damov" <[EMAIL PROTECTED]> wrote:
>> I don't get the question - just serialize the items into the bundle?
>> Am I missing something here?
>>
>> On Fri, Oct 10, 2008 at 4:31 PM, Mark Hansen <[EMAIL PROTECTED]> wrote:
>>
>> > I have a ListView I'm populating with a call to an XML feed, and I'd
>> > like to save it when the orientation flips to save a reload.
>>
>> > I've read that you can Override the onSaveInstanceState and store your
>> > information there, but I can't figure out how to save the values of a
>> > ListView?
>>
>> > Am I on the right path or am I doing something wrong?
>>
>>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to