title: StartActivity is undefined for the type?
body: <p>I know that this question has been already asked, but the existing answers do not work for me.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>   public class OrganizatorActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_organizator);
  
          Button newText = (Button)findViewById(R.id.newText);
  
          newText.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  Intent intent = new Intent(OrganizatorActivity.this, NewnoteActivity.class);
                  OrganizatorActivity.this.StartActivity(intent);
              }
          });
      }
  }
  </code></pre>
  
  <p>Error : The method <code>StartActivity(Intent)</code> is undefined for the type <code>OrganizatorActivity</code></p>
  
  <p>I tried this too :</p>
  
  <pre><code>StartActivity(intent);
  </code></pre>
  
  <p><strong>Error</strong> : The method <code>StartActivity(Intent)</code> is undefined for the type new <code>View.OnClickListener(){}</code></p>
  
  <p>And this doesn't work either :</p>
  
  <pre><code>getApplicationContext().StartActivity(intent);
  </code></pre>
  
  <p><strong>Error</strong> : The method <code>StartActivity(Intent)</code> is undefined for the type <code>Context</code></p>
  
  <p>My API level is 8, Android 2.2.</p>
  
  <p><code>OrganizatorActivity</code> is my main activity and <code>NewnoteActivity</code> is the activity i want to open with the intent ( called from button click ).</p>
  
  <p>Thank you in advance.</p>