title: How can i get the value from a textclock
body: <p>In my app i have a textclock displaying the current hour and i want to when i click a button to get the value from the textclock and put it in a string variable. I have it like this:</p>
  
  <pre><code>TextClock time = (TextClock) findViewById(R.id.horas);
  horas = time.getText().toString();
  </code></pre>
  
  <p>And in my layout the textclock is like this:</p>
  
  <pre><code>&lt;TextClock
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/horas"
      android:textSize="30dp"
      android:layout_below="@+id/space2"
      android:layout_centerHorizontal="true" /&gt;
  </code></pre>
  
  <p>But with this it returns an empty value.</p>