I am trying to transfer file to remote bluetooth device as given below
while (availableBytes > 0 ) {
bytesRead = inStream.read(tempData,0,tempData.length);
mmOutStream.write(tempData,0,bytesRead);
mmOutStream.flush();
availableBytes = inStream.available();
}/* End of availableBytes */
While write is in progress for large file ( 500 KB), I am getting IO exception as "IOException: Connection timed out" after 12 to 15 mins. When i am sending small file which is of < 100 KB, i am successful in transferring. I am not closing socket while file transfer is in progress. Is there any limitation in Android that Bluetooth socket can be active only for some fixed time limit?
Please throw your views on this