I have a code like this:
@Override
public void onSuccess(int statusCode, Header[] headers,
byte[] responseBody) {
// TODO Auto-generated method stub
String response = new String(responseBody);
text.setText(response+"aa");
}
Textview is like this: [B@4104dc30aa is it byte array, if it how can I convert to normal text?
toStringfor a byte array ([B@4104dc30aa) is simply the array symbol[followed byBfor byte,@, and the array's hash value -- not a helpful dump of the array for diagnostic purposes. What you need to know is the encoding of the byte array (assuming it's character data at all). One would hope it's UTF8, but could be others.