Skip to content Skip to sidebar Skip to footer

The Method Getsupportfragmentmanager() Is Undefined For The Type Mainactivity For Actionbarsherlock

I am using Actionbarsherlock library, This is a project to perform drawer operation I have also ensured i don't mix compatibility packages, still i am getting this error MainActi

Solution 1:

You should extend SherlockFragmentActivity instead of SherlockActivity

Solution 2:

Use getActivity().getSupportFragmentManager() insted getSupportFragmentManager().

It's work.

Post a Comment for "The Method Getsupportfragmentmanager() Is Undefined For The Type Mainactivity For Actionbarsherlock"