이게 BlueToothService.java에 있는 소스라 치면 이것을
MainController에서 불러와서 텍스트 뷰를 이용해서 출력 하고 싶은데 어떻게 소스를 추가해야되나요
public void run() {
Log.i(TAG, "BEGIN mConnectedThread");
byte[] buffer = new byte[1024];
int bytes;
// Keep listening to the InputStream while connected
while (true) {
try {
// Read from the InputStream
bytes = mmInStream.read(buffer);
String result1 ="";
while(result1.length()<10){
result1.concat(new String(buffer,0,bytes));
Log.i("mescheck",result1); }
// mHandler.obtainMessage(MainController.MESSAGE_READ, bytes, -1, buffer)
//.sendToTarget();
} catch (IOException e) {
Log.e(TAG, "disconnected", e);
connectionLost();
break;
}