Android TabActivity and setContent(int idView) ---> RuntimeException
<p>I have created this little testcase:</p>

<pre><code>public class MainActivity extends TabActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            TabHost tabHost = getTabHost();
            TabSpec spec;
        spec = tabHost.newTabSpec(getString(R.string.service));
        spec.setIndicator(getString(R.string.service));
        spec.setContent(R.id.first_tab);
        tabHost.addTab(spec);
    }
}
</code></pre>

<p>and this is the relative layout document:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:id="@+id/first_tab"&gt;

    &lt;ToggleButton android:id="@+id/serviceButton"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:textOn="@string/service_on" android:textOff="@string/service_off"&gt;
    &lt;/ToggleButton&gt;

    &lt;/RelativeLayout&gt;
</code></pre>

<p>Anyone know why i get this exception at runtime: 
java.lang.RuntimeException: Could not create tab content because could not find view with id 2131034112 ?</p>

<p>The code seems to be right!</p>

<p>Thanks you for any reply.</p>
