0

We are trying to implementing Tab Layout in android. I have take the refernce of the following link.

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

I am getting compile time error in the following line :

TabHost tabHost = getTabHost();

Can any one please help me why it is giving error getTabHost() is predefined android method but still i am getting compile time error on this line

1 Answer 1

1

you need to extend TabActivity in your activity class.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.