Okay, I solved this in case anyone else has the same question. I changed all my
annotations). I also created these two methods for parceling/unparceling collections:
protected final static <T extends Entity> void parcelCollection(final Parcel out, final Collection<T> collection) {
if (collection != null) {
out.writeInt(collection.size());
out.writeTypedList(new ArrayList<T>(collection));
} else {
out.writeInt(-1);
}
}
protected final static <T extends Entity> Collection<T> unparcelCollection(final Parcel in, final Creator<T> creator) {
final int size = in.readInt();
if (size >= 0) {
final List<T> list = new ArrayList<T>(size);
in.readTypedList(list, creator);
return list;
} else {
return null;
}
}
I'm not sure if there are any repercussions to using a Collection instead of a ForeignCollection, but I haven't experienced any issues in my app so far.
On Saturday, June 1, 2013 1:56:34 PM UTC-6, Matt Huggins wrote: