title: Editext values getting cleared while moving from one activity to another activity
body: <p>I have three edittext and one button in Main Activity. 
  If I click button in MainActivity it will move to Activity2. And, if click button in Activity2 it will move back to Main activity. The MainActivity edittext values getting cleared if I go back MainActivity.
  I need to save the edittext values. Is there any way to do this except Shared Preferences.</p>
  
  <p>Main Activity</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          Button bt1 = findViewById(R.id.btn1);
  
          final EditText et1 = findViewById(R.id.et1);
          final EditText et2 = findViewById(R.id.et2);
          final EditText et3 = findViewById(R.id.et3);
  
  
          bt1.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(getApplicationContext(),Activity2.class);
                  startActivity(intent);
              }
          });
  
  
      }
  }
  </code></pre>
  
  <p>Activity2</p>
  
  <pre><code>public class Activity2 extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity2);
  
          Button bt2 = findViewById(R.id.btn2);
  
          bt2.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(getApplicationContext(),MainActivity.class);
                  startActivity(intent);
              }
          });
  
  
  
      }
  }
  </code></pre>