In the documentation for the Parcel it states a method exists
public final void writeBooleanArray (boolean[] val)
But there is no method for writeBoolean(boolean val)
There also exists:
public final void writeLong (long val)
public final void writeLongArray (long[] val)
So a similar pattern is available for other primitive types.
Can some one explain why this is?
There is an open bug report on it:
http://code.google.com/p/android/issues/detail?id=5973
Evidently others agree with your assessment (and I do too).
No reason at all, seems just a miss to me. :-) Write a boolean[1] if you need.
See bug 5973.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With