블루투스채팅과 Notification 을 합쳤는데요 ~
Notification에서 Text 부분에 블루투스채팅에서 수신된 내용을 표기하려고하는데 어떤식으로 해야할지모르겠습니다ㅠㅠ
.setContentText(" ") 일단 이부분에 내용을 넣고싶은데요~~
-------------------------------------------------------
case MESSAGE_READ:
byte[] readBuf = (byte[]) msg.obj;
// construct a string from the valid bytes in the buffer
String readMessage = new String(readBuf, 0, msg.arg1);
mConversationArrayAdapter.add(mConnectedDeviceName+": " + readMessage);
//진동
Vibrator vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE);
long milliseconds = 1000;
vibrator.vibrate(milliseconds);
//알림음
beep.play(bee,1,1,0,0,1);
이부분이 수신받는쪽 코딩입니다
알려주시면 감사하겠습니다 꾸벅~