title: How to save state of activity while starting other activity through StartActivity() method od Intent?
body: <p>I have an <code>ActivityA</code>, which starts <code>ActivityB</code> through Intent's <code>startActivity()</code> method.The context is as below: <br> </p>
  
  <h1>A.java <br></h1>
  
  <pre><code>String name = edittext.getString();  
  Intent i = new Intent(A.this,B.class);  
  Bundle b = new Bundle();  
  b.putString("Name",name);  
  i.putExtras(b);  
  startActivity(b);  
  </code></pre>
  
  <h1>B.java</h1>
  
  <pre><code>Bundle bb=getIntent().getExtras();
  String namee=bb.getString("name");
  </code></pre>
  
  <p>In this B Activity there will be Back button which when clicked takes control back to A as below: <br></p>
  
  <pre><code>     back.setOnClickListener(new OnClickListener()
      { 
          public void onClick(View arg0) {
     Intent backToDetails = new Intent(B.this,A.class);
     startActivity(backToDetails);
  }
       });
  </code></pre>
  
  <p><br>
  Now control comes to <code>ActivityA</code>. When I again start <code>Activity B</code> from <code>Activity A</code> , the previous value of the name is lost .So, I again get new Value by overwrting old value in <code>Activity B</code>. So, how to save previous name value ?
  How to save the state of Activity B?
  Can any one help me in sorting out this issue? <br>
  <br>Thanks In Advance,</p>