SherlockListActivity does not have getSupportFragmentManager method

actionbarsherlock, android

Solution

Does anyone know why the method getSupportFragmentManager is missing

Because `SherlockListActivity` inherits from `ListActivity`, not from `FragmentActivity`.

how I could workaround this issue?

Do not use `SherlockListActivity`. Use `SherlockFragmentActivity` and either a `SherlockListFragment` or your own `ListView` management code.

Problem

I have an activity derived from `SherlockListActivity` and I am wanting to show a `SherlockDialogFragment` inside this activity. The `show` method of the dialog instance requires a `SupportFragmentManager`, but it seems that `SherlockListActivity` only has the method `getFragmentManager` and not `getSupportFragmentManager`. Does anyone know why the method `getSupportFragmentManager` is missing and how I could workaround this issue?

Original source