Just use ArrayList<Parcelable> as your data type.

On Thu, Jul 16, 2009 at 5:31 AM, Bart van Wissen <[email protected]>wrote:

>
> > 2. Use a generic Parcelable class type, in which case the marshalling
> code
> > will inspect the class type, included that in the marshalled data, and
> use
> > that to re-construct it on the other side.
> >
>
> I don't understand this.
>
> My program deals with Condition objects, which can be put in a list to
> specify a series of search conditions. There are specific classes like
> StringCondition, TimeCondition, LocationCondition, etc. They are all
> subclasses of Condition, but they all have their specific sets of
> fields.
>
> A list of those has to be passed to a service. Now how would I use a
> generic Parcelable class for this? To be honest I don't have much
> experience with generic classes.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to