title: How to change Radio Button text into int?
body: <p>I have a radio group with 2 options which is Male and Female.
  I wanted to save RadioButton Male as int number "1" and Female as "2" into my database.
  But I don't really know how to implement it.
  If it is possible could someone enlighten me on this issue? 
  Thank you in advance.</p>
  
  <pre><code>    &lt;RadioGroup
      android:id="@+id/radio_sex"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/email_address"
      android:layout_alignTop="@+id/textView5"
      android:orientation="vertical" &gt;
  
      &lt;RadioButton
          android:id="@+id/radio_male"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Male" /&gt;
  
      &lt;RadioButton
          android:id="@+id/radio_female"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Female" /&gt;
  &lt;/RadioGroup&gt;
  </code></pre>