I need to be able to create a WAV file using the mic in Android. Currently, I\'m having a lot of trouble. So far, this is my situation. I\'m using parts of the micDroid project
You can set a buffer to be little-endian by using the following:
buffer.order(ByteOrder.LITTLE_ENDIAN);