I've got problem with converting byte array to string and back :) I get byte array from api which is 10 bytes long. When I convert it to String i"m getting String with 20 chars for example "12345678901234567890" so it looks like there are 2 chars on one byte. However when I try to send it back with simply getText() from editText :
String namespace = mNamespaceTv.getText().toString();
byte array created from that string is 20 bytes long, so one char to one byte. I need to send it back again as 10 byte array. Why it happened and how can I solve this ?