title: Is it possible to convert a table row into string in Android?
body: <p>I am developing my first Android app. I have a table layout in my app, which will add rows dynamically. But, I want to convert the table rows into string. I tried "row.toString()" but I am not getting the expected result. Please find the following code snippet:</p>
  
  <pre><code>        View view = null;
  
          for(i = 0, j = tblayout.getChildCount(); i &lt; j; i++)
          {
              view = tblayout.getChildAt(i);
              TableRow rw = (TableRow)tblayout.getChildAt(i);
              ColorDrawable viewColor = (ColorDrawable) view.getBackground();
              int colorId = viewColor.getColor();
              if(colorId == Color.parseColor("#E143ED23")) {
                  num ++;
                  //temCnt = view.toString();
                  temCnt = rw.toString();
              }
         }
          Toast.makeText(getApplicationContext(),temCnt, Toast.LENGTH_LONG).show();
  </code></pre>
  
  <p>But it is not showing the actual table row data. It is showing some ids' or garbage value.</p>
  
  <p>My requirement is:
  I have 2 text boxes and 2 buttons. When the first button "Ok" is pressed the value inside the text boxes will be populated into the Table layout along with a checkbox. By default the row will be checked. But user can uncheck each items. After that, when the second button "Save All" is pressed, then it will search for all the table rows which are checked and it should insert the table rows into the my MS SQL table.</p>
  
  <p>Is there any way for converting the table row into a string in Java? I really trapped on this. It would be very helpful if someone can help me on this.
  Please help...</p>