long t1 = System.currentTimeMillis();
boolean complete = false;
while( ! complete ) {
receiveIntoByteArray(response);
if ( response.length() >= 3 ) {
int expectedFrameLength = Obex.bytesToInt(response.subArray(1,2).getBuffer());
if ( response.length() >= expectedFrameLength ) {
complete = true;
}
}
if ( ! complete ) {