findViewById returns null
<p>I have simple code</p>

<pre><code>package com.zim32;

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

public class TestActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        TextView textvew = (TextView)findViewById(R.id.logtext);
    }

}
</code></pre>

<p>textView is null. Why?
Here is XML</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    android:id="@+id/logtext"
    /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>I found somethind about onFinishInflate. Where should i use it?</p>
