Skip to content

Commit

Permalink
Update Connection.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mellon-collie authored Jun 22, 2017
1 parent ab4664a commit 1917258
Showing 1 changed file with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,33 +85,8 @@ public void run() {
handler.postDelayed(this,200);
}
};
runnable.run();
//ListenInput.start();


// byte[] buffer = new byte[1024]; // buffer store for the stream

//int bytes; // bytes returned from read()

// Keep listening to the InputStream until an exception occurs
/*while (true) {
// Read from the InputStream
try {
if(mmInStream==null)
{
Log.d("","InputStream is null");
}
bytes = mmInStream.read(buffer);
String incomingMessage = new String(buffer, 0, bytes);
incomingData.setText(incomingMessage);
} catch (IOException e) {
}
}*/
}});
runnable.run();
}});

}
Thread ListenInput=new Thread(){
Expand Down

0 comments on commit 1917258

Please sign in to comment.