title: startActivity in onclick
body: <p>have a simple Activity with a onClick method - it works
  but Android Studio marks startActivity red says cannot resolve method - so why?</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.lyt_start);
  }
  
  public void onClick(View v) {
      switch (v.getId()) {
  
          case R.id.btn1:
  
              Intent int_Update = new Intent(v.getContext(), aty_Update.class);
  
              startActivity(int_Update);
  
              break;
  
          case R.id.btn2:
  
              Intent int_Start = new Intent(v.getContext(), aty_Main.class);
              startActivity(int_Start);
  
              break;
      }
  }
  </code></pre>