title: press button makes spinner visible in another screen
body: <p>I'm trying to code an onClickevent button on screen 1 that makes
  a spinner visible or invisible, depends of the needs, on screen 2 as a result.</p>
  
  <p>Knowing that on screen 1 there are several buttons which uses the same views 
  or widgets on the second screen, I was thinking about it to use one screen for 
  all these activities.</p>
  
  <p>It would be nice if someone knows and explain to me how to solve this problem.</p>
  
  <p>I will attach the java code just to look at it.</p>
  
  <pre><code>public class screen1 extends Activity {
  
      private View spinner1;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
          WindowManager.LayoutParams.FLAG_FULLSCREEN);
          setContentView(R.layout.screen1);
  
          spinner1 = findViewById(R.id.spinner1);
          Button A = (Button) findViewById(R.id.b_A);
  
       // error output: Cannot instantiate the type View.OnClickListener
              A.setOnClickListener(new View.OnClickListener());
          A.setOnClickListener(mVisibleListener);
          }   
  
                          @Override
  // error output behind the line 'public void':The method onClick(View) of type screen1 must override or implement a supertype method
  
              public void onClick(View arg0) {
                  // TODO Auto-generated method stub
                  startActivity(new Intent("com.jack.test.SCREENMENU"));
  
              }
              OnClickListener mVisibleListener = new OnClickListener(){
                  public void onClick(View v){
                      spinner1.setVisibility(View.VISIBLE);{
          };    
                         // the rest is ok from here to down.
  </code></pre>