title: How does radio button stay selected when other activity is initiated using an intent?
body: <p>My Main activity has a group radio buttons. When each of them is clicked, it initiates a different activity. All the activities have the same XML but the inputs and the functionality is different. What I mean is the radio group is common for all Activities. For Example: When a first radio button is clicked, it initiates a different activity and the radio box selection disappears. I need the clicked radio button selection to stay on until a different radio button from the group is clicked though it is in a different activity. How do I get this working? Any help will be greatly appreciated!</p>
  
  <pre><code>public void onRadioButtonClicked(View view){
       boolean checked = ((RadioButton) view).isChecked();
  
      // Check which radio button was clicked
      switch(view.getId()) {
          case R.id.radio_199os:
              if (checked){
  
                  Intent intent = new Intent(MainActivity.this, second.class);
                  startActivity(intent);
  
  
              }
  
              break;
          case R.id.radio_399os:
              if (checked){
                  Intent intent = new Intent(MainActivity.this, Third.class);
                  startActivity(intent);
              }                 
  
              break;
          case R.id.radio_2000os:
              if (checked){
                  Intent intent = new Intent(MainActivity.this, Fourth.class);
                  startActivity(intent);
              }
                  //
              break;
      }         
  
  }
  </code></pre>