蓝牙打印的时候通过
OutputStream的
public void write(byte[] buffer, int offset, int count) throws IOException {
Arrays.checkOffsetAndCount(buffer.length, offset, count);
for (int i = offset; i < offset + count; i++) {
write(buffer[i]);
}
}
方法向蓝牙设备输出数据
报错
12-09 11:58:19.202: W/System.err(17001): java.io.IOException: Broken pipe
求解。
OutputStream的
public void write(byte[] buffer, int offset, int count) throws IOException {
Arrays.checkOffsetAndCount(buffer.length, offset, count);
for (int i = offset; i < offset + count; i++) {
write(buffer[i]);
}
}
方法向蓝牙设备输出数据
报错
12-09 11:58:19.202: W/System.err(17001): java.io.IOException: Broken pipe
求解。