且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

readBooleanArray抛出的RuntimeException("坏的数组长度与Q​​UOT;)

更新时间:2023-02-17 13:52:00

其实我发现我的问题的解决方案,但在另一个没有回答question:

Actually i found solution for my problem, but not answer in another question:

在这里,在Pracelable是如何工作的,您用布尔值:

Here is how can You work with booleans in Pracelable:

.....
// Write:
out.writeByte((byte) (booleanValue ? 1 : 0));

....

// Read:
boolValue = in.readByte() == 1;