convert textView to string
<pre><code>TextView totalHours;
String TotalHours;
totalHours.setText(("Total hours : " + hours + ":" + minutes));
</code></pre>

<p>Assume the output is <strong>Totalhours :13:25</strong></p>

<p>Now I want to convert the totalHours into <code>String</code> and save 13:25 into MySQL.</p>

<pre><code> TotalHours=totalHours.getText().toString();
 String[] time= TotalHours.split(":", 2);
 addInformation(time[1]);
</code></pre>

<p>Is this the correct way to convert a <code>textView</code> into <code>String</code> ?</p>