Hi there,

I have a problem using a class that extends the Parcelable interface.
Actually it's a child class of one that implements that interface.

The problem is that I think the class is valid and I followed all the
required steps that has been described in 'http://
developer.android.com/reference/android/os/Parcelable.html' but it's
still not working.

My scenary is that I have a class called Feed that is child of
FeedItem which implements Parcelable:

 - FeedItem Class:
http://code.google.com/p/meneameandroid/source/browse/trunk/src/meneameApp/src/com/dcg/util/rss/FeedItem.java

 - Feed Class: 
http://code.google.com/p/meneameandroid/source/browse/trunk/src/meneameApp/src/com/dcg/util/rss/Feed.java

So FeedItem just implements the Parcelable but dose nothing and Feed
actually fills all data into a Parcel.

Now in an ListActivity I use 2 method which shoudl save/restore a
feed:
        /**
         * Save state data into
         */
        @Override
        protected void onSaveInstanceState(Bundle outState) {
                if ( mFeed != null )
                {
                        outState.putParcelable("currentlySavedFeed",
mFeed);
                }
                super.onSaveInstanceState(outState);
        }

        @Override
        protected void onRestoreInstanceState(Bundle state) {
                mFeed = state.getParcelable("currentlySavedFeed");
                super.onRestoreInstanceState(state);
        }

But it's never get's to the writeToParcel or readFromParcel cals of my
Feed Class.

Thx for the help in advance.

Cheers,
  Moss

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to