Android Parcelable嵌套对象列表

时间:2016-02-27 00:02:47

标签: android parcelable

我正在尝试使我的深层嵌套对象列表可分辨但由于内存不足而模拟进程重启时,应用程序因“内存不足异常”而不断崩溃。我的课程:

class Base implements Parcelable{

    protected Double mDouble1;
    protected Double mDouble2;
    protected Double mDouble3;
    protected Double mDouble4;
}

class A extends Base{
    List<B> mBList = new ArrayList<>();
}

class B extends Base{
    List<C> mCList = new ArrayList<>();
}

class C extends Base{
    List<D> mDList = new ArrayList<>();
}

class D extends Base{

}

class RESTRequest implements Parcelable{
    int int1;
    String s;
    List<A> mAList = new ArrayList<>();
}

0 个答案:

没有答案