You are using ListFragment
from android.support.v4.app.ListFragment
. If you indeed want to use support package, your Activity
should extend FragmentActivity
and then you should call getSupportFragmentManager()
instead of getFragmentManager()
. Otherwise please use android.app.ListFragment
. So, probaly you should replace this:
import android.support.v4.app.ListFragment;
with this:
import android.app.ListFragment;