I’m using ActionBarSherlock library, and I want to replace current SherlockFragment with another one, i tried to compile that but it says that the target class is not a Fragment(But it extends SherlockFragment):
final FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.replace(R.id.details, new Student(), "Student");
ft.commit();
How can I make that with SherlockFragment.
Thank you for helping.
Use
getSupportFragmentManager()instead ofgetFragmentManager()