title: How do I display more data separately?
body: <pre><code>   **bluetoothdatadisplay**
   void beginListenForData() {
                  //final Handler handler = new Handler();
                  final Handler handler = new Handler(Looper.getMainLooper());
                  final byte delimiter = 10; //This is the ASCII code for a newline character
  
                  stopWorker = false;
                  readBufferPosition = 0;
                  readBuffer = new byte[2048];//It uses a 1024 bytes long buffer because it doesn't have any way of knowing the length of the input stream.
                  workerThread = new Thread(new Runnable() {
                      public void run() {
                          while (!Thread.currentThread().isInterrupted() &amp;&amp; !stopWorker) {
                              try {
                                  int bytesAvailable = mmInputStream.available();
                                  if (bytesAvailable &gt; 0) {
                                      byte[] packetBytes = new byte[bytesAvailable];
                                      mmInputStream.read(packetBytes);
                                      for (int i = 0; i &lt; bytesAvailable; i++) {
                                          byte b = packetBytes[i];
                                          if (b == delimiter) {
                                              byte[] encodedBytes = new byte[readBufferPosition];
                                              System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length);
                                              final String data = new String(encodedBytes, "US-ASCII");
                                              readBufferPosition = 0;
  
                                              handler.post(new Runnable() {
  
                                                  public void run() {
  
                                                      myLabel.setText(data);
                                                      //Log.d("MyLabel", data);
                                                  }
                                              });
  
                                          } else {
                                              readBuffer[readBufferPosition++] = b;
                                          }
                                      }
                                  }
                              } catch (IOException ex) {
                                  stopWorker = true;
                              }
                          }
                      }
                  });
  
                  workerThread.start();
              }//end of begindata
  </code></pre>
  
  <p>Hi I trying to receive the data from Arduino, But when I send all my data were flashing very fast since there is only one textview use. How do I separate them in Android for eg into different textbox? Thanks! </p>