From 19172580465d0bb7d2b9787150848154ecdb8394 Mon Sep 17 00:00:00 2001 From: mellon-collie Date: Thu, 22 Jun 2017 20:01:07 +0530 Subject: [PATCH] Update Connection.java --- .../bluetoothcommunication/Connection.java | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/bangalore/pes/bluetoothcommunication/Connection.java b/app/src/main/java/bangalore/pes/bluetoothcommunication/Connection.java index 501a965..38290b4 100644 --- a/app/src/main/java/bangalore/pes/bluetoothcommunication/Connection.java +++ b/app/src/main/java/bangalore/pes/bluetoothcommunication/Connection.java @@ -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(){