title: Convert hex string to byte []
body: <p>I've got a String like this:</p>
  
  <pre><code>init_thread = "2b11020000ed"
  </code></pre>
  
  <p>I have to send this string via bluetooth, for what I do this:</p>
  
  <pre><code>byte[] init = init_thread.getBytes();
  GlobalVar.mTransmission.write(init);
  </code></pre>
  
  <p>What I need is to define that the <code>init_thread</code> string is an hex string before converting it to bytes, because if I do this way, it is getting it wrong:</p>
  
  <p>What is doing now = 2(1byte), b(1byte), 1(1byte), 1(1byte)...</p>
  
  <p>What must do = 2b(1byte), 11(1byte), 02(1byte)...</p>