What's wrong with these simple android lines?
<p>can anyone please tell me what's wrong with this:</p>

<pre><code>package applicationTest.ppr.com;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainClass extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {       
        super.onCreate(savedInstanceState);
        TextView tv = (TextView)findViewById(R.id.text);
        tv.setText("Merdas para teste");
        setContentView(R.layout.main);

    } 
}
</code></pre>

<p>my main.xml and android manifest are good. the app crashes when i added the textview stuff, and altered the default text specified in my main.xml. If I remove this, the app works.. but I can't figure out why...</p>

<p>Thanks a bunch!</p>
