title: How to set text for EditText control when its inputType is number
body: <p>How to set text programmatically for EditText control when its inputType is number ?</p>
  
  <pre><code>&lt;EditText
      android:id="@+id/WorkingHoursET"
      android:layout_width="fill_parent"
       android:textColor="@color/white"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/WorkingHoursTV"
      android:layout_below="@+id/WorkingHoursTV"
      android:layout_marginTop="14dp"
      android:ems="10"
      android:inputType="number" /&gt;
  
  
      EditText workedHours = (EditText)findViewById(R.id.WorkedHoursET);
      workedHours.setText(8); //this is not working
      workedHours.setText("8"); //neither this
  </code></pre>