legalimpurity
legalimpurity

Reputation: 180

problems implementing FragmentTabHost.setup

i get this error in eclipse while implementing FragmentTabHost

The method setup(Context, FragmentManager, int) in the type FragmentTabHost is not applicable for the arguments (Context, FragmentManager, int)

been following the official android post and refereed to a couple of other sites too,

http://developer.android.com/reference/android/support/v4/app/FragmentTabHost.html

any suggestions ??

Upvotes: 0

Views: 1768

Answers (1)

gunar
gunar

Reputation: 14710

I guess you're extending FragmentActivity and using classes from compatibility package. When calling setup, you're probably calling it like this:

setup(this, getFragmentManager(), containerId);

Call it like this:

setup(this, getSupportFragmentManager(), containerId);

This answer is based on assumptions - since you didn't provide more details about how you're calling setup and what are your parent classes.

Upvotes: 2

Related Questions