I\'m doing my first Android app, and wanted to get straight into the ICS API. I have so far created an app using an ActionBar, with swipeable tabs using Viewpager and Fragme
This solution works for me
replace
public class MyFragment extends Fragment{
}
with
public class MyFragment extends android.support.v4.app.Fragment{
}
and also replace import
import android.app.Fragment;
with
import android.support.v4.app.Fragment;
I had the same problem. Solved it by changing the interface from implements ActionBar.TabListener
to implements TabListener
and then implement the methods inside this interface. Its also mentioned the error you have mentioned.