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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -