android - Receive file as a byte Bluetooth -
i'm developing android application allows send data device another. try send file device another. phone receive data can't read bytes. possible? , if is, how can ?
while (true) { try { bytes = mminstream.available(); log.d("read","bytes"+bytes); if(bytes != 0) { systemclock.sleep(100); bytes = mminstream.available(); bytes = mminstream.read(buffer, 0, bytes); mhandler.obtainmessage(message_read, bytes, -1, buffer) .sendtotarget(); break; } } catch (ioexception e) { e.printstacktrace(); break; }
Comments
Post a Comment