title: How to convert byte array to string excluding 0x00 chars in Android
body: <p>the result of my decryption routine returns a byte array like this:</p>
  
  <p>30303030303030310000000000000000</p>
  
  <p>That should be converted to (int) 00000001, but I cannot get rid of the trailing 0x00's. What would be the best way to accomplish that?</p>
  
  <p>Any help would be greatly appreciated, thanks!</p>