SingleFragmentActivity extends FragmentActivity not Fragment. Add
onCreate().