I have a list Fragment (importing the v4 support library, build target is 2.3.3 api 11) and the following problem in my code that was working fine when the target was 3.0 and I
You have to make sure that when you extend Fragment
that you are extending the Fragment
that is in the v4
package space. Check your imports for Fragment
, FragmentActivity
, etc, and if you see them imported WITHOUT .v4 in the package name, then it is wrong.
Also, if you set the android library for the project to be 2.3 and not 4.0.x then you'll quickly see if you are using the incorrect classes, because you'll get compile errors, which can be fixed by using the v4 classes from the android support jar (which hopefully you've included in your project as well)