title: How to get a value from radiogroup to another activity?
body: <p>I want to make a new activity, like to confirm what radio-button is checked.</p>
  
  <ul>
  <li>I have 2 radio-groups   </li>
  <li>Each group has 10 radio-buttons at least   </li>
  <li>I want to take whatever radio-button is checked value to the next activity</li>
  </ul>
  
  <p>and for sure just one radio-button can be selected from every radio-group </p>
  
  <p>Here is my xml code and I want the java code</p>
  
  <pre><code>  &lt;ScrollView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="391dp"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Where Are You" /&gt;
  
              &lt;RadioGroup
                  android:id="@+id/radioGroup0"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:scrollbarStyle="insideOverlay"
                  android:scrollbars="vertical" &gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio0"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="it" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Eng" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio2"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="there" /&gt;
                  &lt;RadioButton
                      android:id="@+id/radio3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="it" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio4"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Eng" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio5"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="there" /&gt;
                  &lt;RadioButton
                      android:id="@+id/radio6"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="it" /&gt;
  
              &lt;TextView
                  android:id="@+id/textView2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Where Do You Want To Go" /&gt;
  
              &lt;RadioGroup
                  android:id="@+id/radioGroup1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:scrollbarStyle="insideOverlay"
                  android:scrollbars="vertical" &gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio12"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="it" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio13"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Eng" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio14"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="there" /&gt;
                  &lt;RadioButton
                      android:id="@+id/radio15"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="it" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio16"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Eng" /&gt;
  
                  &lt;RadioButton
                      android:id="@+id/radio17"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="there" /&gt;
  
              &lt;/RadioGroup&gt;
  
              &lt;Button
                  android:id="@+id/button1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="OK" /&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  </code></pre>
  
  <p>I have deleted some of the radio-buttons so it doesn't get long </p>
  
  <p>Please note I am a beginner.</p>