I have a String variable that receives the different values, I need to append the different values received in the same variable, I have used StringBuilder but I can't append, how can I do that?
private void receive(byte[] data) {
String msg = new String(data);
StringBuilder sb = new StringBuilder();
sb.append(msg);
Log.e("DEBUGRX-->", String.valueOf(sb));
}