title: how to make image invisble in first activity when navigating from second activity to first activity
body: <p>I have two imageviews in <code>firstActivity(MainActivity)</code> when i click signIn image then it moves to <code>SignUp Activity</code>...
  here when i click on signUp image then again it will come to <code>MainActivity</code>..and here i have to make <code>firstName</code> image invisible..</p>
  
  <pre><code>public class MainActivity extends Activity  {
  
  ImageView firstName,signIn ;
  
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);     
      setContentView(R.layout.activity_main);
  
      firstName =(ImageView)findViewById(R.id.imageView1);
  signIn =(ImageView)findViewById(R.id.imageView2);
  
      signIn.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
  
              Intent intent = new Intent(getApplicationContext(),SignUp.class);
              startActivity(intent);              
  
          }
      });     
      }
  
  
  
   protected void onStart() {
      super.onStart();
      Log.i(TAG, "onStart");  
  
      String mm ="5";
      Intent i= getIntent(); String s = i.getStringExtra("PrevAct");
  
      if (mm ==s) {               
  
              firstName.setVisibility(View.GONE);
      }
          }
  
  public class SignUp extends Activity {
  
  
  ImageView signUp;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
          setContentView(R.layout.signup);      
  
      signUp =(ImageView)findViewById(R.id.imageView3);       
      signUp.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub              
  
      Intent intent = new Intent(getApplicationContext(), MainActivity.class);
      intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); 
               intent.putExtra("PrevAct","5");
               startActivity(intent);
  
  
          }
      });
  
  }}
  </code></pre>