title: How to get the id of selected radio button in android?
body: <p>I am working on quiz application in android. We have created <strong>Select.java</strong> page which displays the questions and options(with radio buttons) from sqlite database. Also we created a <strong>header.java</strong> file for displaying buttons i.e back and next buttons for the Select.java page.</p>
  
  <p><img src="https://i.stack.imgur.com/UkE3n.png" alt="enter image description here"></p>
  
  <p>Here we need to get the selected radio button id and need to send that to Header class. Because header class consists of the next button onclick action. Once the next button is clicked the selected radio button value has to be stored in arraylist. We created radio buttons in Select.java class. So my question is how to get the selected radio button id into that next button click action. Please help me regarding this.</p>
  
  <p>Thanks in Advance. </p>