android.os.TransactionTooLargeException:数据包大小3354884字节

时间:2018-06-15 11:50:32

标签: android transactiontoolargeexception

List<Data> data = fill_with_data();

public List<Data> fill_with_data() {
        List<Data> data = new ArrayList<>();
        for (int i = 0; i < Glob.frames.length; i++) {
            data.add(new Data(Glob.frames[i]));
        }
        return data;
    }



public class Data {

    public int images;

    public Data(int images) {

        this.images = images;
    }
}
从可绘制文件夹加载图像时出现错误 每次都得到TransactionTooLargeException

0 个答案:

没有答案