for(int i=0; i < size; i ++){
int tmpSize = size_btCat;
m_btCat[tmpSize + i] = buffer[i];
}
String tmpStrSec = new String(m_btCat, 0, m_btCat.length);
Arrays.fill(m_btCat,(byte)0);
postBroadcast(tmpStrSec);
}
else{
//if string is bigger than 32bytes, we should concat not only times
for(int i=0; i < size; i ++){
int tmpSize = size_btCat;
m_btCat[tmpSize + i] = buffer[i];
}
//m_strCat = m_strCat.concat(str);
}
------解决方案--------------------我觉得直接用字符读取不就行了吗?难道有只能用字节读取的需求要求?