Android - getTabHost() is undefined

Posted by gbhall on Stack Overflow See other posts from Stack Overflow or by gbhall
Published on 2010-05-05T18:38:22Z Indexed on 2010/05/05 19:08 UTC
Read the original article Hit count: 972

Filed under:
|

I started learning Java and how to program for Android last night :)

So far I'm on this tutorial: developer.android.com/resources/tutorials/views/hello-tabwidget.html

Clearly these tutorials have been designed for people that already have experience with Java.

Despite the tutorial lacking all the required steps (for an absolute beginner with Java) and even having a typo, it seems I've figured everything out (which I'm really proud of :p). Except I cannot figure out how to fix TabHost tabHost = getTabHost(); which apparently is undefined.

I have one other error shown in the linked image below, but I don't see why.

Here is the linked image.

Thanks, Gareth

© Stack Overflow or respective owner

Related posts about java

Related posts about android