title: Resize byte array size
body: <p>I've got a byte[] declared this way:</p>
  
  <pre><code>byte[] buffer;
  buffer = new byte[128];
  </code></pre>
  
  <p>Then, I get the received data's size via bluetooth with: </p>
  
  <pre><code>bytes = GlobalVar.mmInStream.read(buffer);
  </code></pre>
  
  <p>Bytes is the size of the received data. What I need is to resize the buffer to the size of it's containig data.</p>