I have a class TableMetaAttrs:
public class TableMetaAttrs implements Parcelable
{
private Integer id;
private String name;
private String value;
private Tables table;
...
How do i implement Parcelable on table field? Class Tables also implements Parcelable.
You have to make the
Tables
classimplements Parcelable
as well.That way whenever
TableMetaAttrs
is parcelling or re-building itself, it can callputParcelable
andgetParcelable
for the table field.edit:
I'm assuming Tables is a class you created, so it's signature must be
then whenever TableMetaAttrs is parcelling it's values it calls:
and rebuilding it: