Born Again
Born Again

Reputation: 2179

onCreate() missing from SherlockFragmentActivity

When I extend the SherlockFragmentActivity to my class, I don't find the onCreate() method in the list of the override/implement methods. Curiously, onDestroy() is present. Any suggestions guys?

Screenshot: This is the screenshot.

Upvotes: 0

Views: 186

Answers (2)

Jerad
Jerad

Reputation: 709

That list does not show you ALL the possible override methods. Only the ones that apply to package SherlockFragmentActivty. ActionbarSherlock does override quite a few things, depending on a lot different situation.

If you minimize SHerlockFragmentActivty in the override list. You will see

  • SherlockFragmeentActivty
  • Watson
  • FragmentActivty
  • Activty
  • etc

The one you need to look into is FragmentActivty that has the onCreate.

Upvotes: 0

eski
eski

Reputation: 7915

It extends FragmentActivity, which does have onCreate() to override

Upvotes: 1

Related Questions