Just FYI, I've announced a pre-release of a library that is built for Android which will convert Java primitives (and primitive arrays) to byte arrays and back again:
http://rschilling.wordpress.com/2013/09/26/pre-release-announcement-pend-oreille/ License: GPL v2. I wrote it because marshalling of primitives and primitive arrays is such as critical thing on a mobile device, and I didn't want to be bound by the performance or memory overhead of using DataOutputStream all the time. This is a pre-release library, so I will be making some improvements and completing important things like javadocs and a guide before the final release. Cheers! Richard -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.