title: How to save result?
body: <p>I'm a rookie in android programming. </p>
  
  <p>I have a small problem. When I click a ImageView, I make that ImageView invisible and set a Button to visible. My problem is that how do you save this? </p>
  
  <p>For eg, I click the ImageView, Button shows up and ImageView disappears. And I exit the app and enter back into that same activity and I want that Button to remain there. </p>
  
  <p>How do I go about doing that?</p>
  
  <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.view.Window;
  import android.view.WindowManager;
  import android.widget.Button;
  import android.widget.ImageView;
  
  public class Flightplan extends Activity {
  
  Button a;
  ImageView b; 
  private boolean isVisible;
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.flightplan);
  
  b = (ImageView) findViewById(R.id.plus);
  View v1 = findViewById(R.id.test); 
  v1.setVisibility(View.GONE);
  b.setOnClickListener(new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
  
              View v2 = findViewById(R.id.test); 
              v2.setVisibility(View.VISIBLE);
  
              View v3 = findViewById(R.id.plus);
              v3.setVisibility(View.GONE); 
      }
  });
  
  } 
  }
  </code></pre>
  
  <p>Thanks!</p>