title: setContentView(R.layout.main); error
body: <pre><code>package com.elfapp;
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.Toast;
  
  public class MainActivity extends Activity implements OnClickListener {
  
      private Button btn_Login;
      private EditText et_UserName;
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          btn_Login = (Button) findViewById(R.id.button_login);
          btn_Login.setOnClickListener(this);
  
          et_UserName = (EditText) findViewById(R.id.editText_userName);
      }
  
      public void onClick(View v) {
          if (v.equals(btn_Login)) {
                  // skriver ut en toast när man klickar på knappen
              Toast.makeText(MainActivity.this, "Ansluter till server...", Toast.LENGTH_SHORT).show();
  
                  // används i debuggern för att påvisa att programmet exekverat hit
              Log.v("ThisApp", "onClick Successful");
  
                  // TODO skickar det som står i et_UserName till controller (genom TCP/IP), som ska kolla om användaren finns
              // send et_UserName.getText().toString() to controller
  
                  // if(username exists)
              Intent intent = new Intent(this, RoomActivity.class);
              this.startActivity(intent);
          }
      }
  
  }
  </code></pre>
  
  <p>I'm getting an error on the line containing <code>setContentView(R.layout.main);</code>
  Not sure about what the error/exception is because I'm not used to working in Eclipse..</p>