I'm struggling with this error and I really can't get it right. I try to import android.support.v13.app.FragmentActivity; into a class but it gives me the error: The import android.support.v13.app.FragmentActivity cannot be resolved. I want to mention that I have both v13 and v4 in libs folder. I used Clean,Android Support Library and Fix Project Properties. The target device is 2.3.3 if that matters. Thank you. I really really hope that someone can help me. EDIT: After editing v4, a lot of errors are disappearing and I've got only 2 more. I'm very beginner in android so if you could explain me what is wrong here:
private class ScreenSlidePagerAdapter extends FragmentStatePagerAdapter {
public ScreenSlidePagerAdapter(FragmentManager fm) {
super(fm); //Error: The constructor Fragmentstagepageadapter(FragmentManager) is undefined
}
@Override
public **Fragment** getItem(int position) { //And Here: The return type is incompatible
return ScreenSlidePageFragment.create(position);
}
@Override
public int getCount() {
return NUM_PAGES;
}
}