Bug Running Android Tutorial HelloTabWidget under SDK 1.5: "setCurrentTag(getIntent())"
<p>does not compile. Indeed: even in 1.5, this api, getIntent(), is already listed as deprecated.</p>

<p>The error message I get complains that getIntent() does not return a String, but setCurrentTab() expects a string.</p>

<p>If I guess and change the line to read:</p>

<p>"tabHost.setCurrentTab(1); // was setCurrentTab(getIntent())",</p>

<p>then it compiles, builds, but does not run. I get the "stopped unexpectedly" error message from the emulator. I cannot even get Log.d to output, so it seems that it stops 'unexpectedly' very early.</p>

<p>So the first and main question is: what is the correct fix to "tabHost.setCurrentTab(getIntent())" in the final line of OnCreate() in <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-tabwidget.html</a>?</p>

<p>The second and simpler question is: did I guess right in replacing 'mTabHost' with tabHost in the one place where that occurs?</p>
