Android examples for java.nio:ByteBuffer
Click the following links for the tutorial for java.nio and ByteBuffer.