I created a new Android project via eclipse using MainActivity. I added an ActionBarSherlock to the project (Properties> Android and clicked Add). Then, when I replace "extends Activity" with "extends SherlockFragmentActivity", I get a compilation error "The hierarchy of type MainActivity is incompatible."
I also tried to create a project without an Activity, and then created a class "MainActivity" that inherits from SherlockFragmentActivity, and there are no compile-time errors, but with a runtime error "ClassNotfoundException: com.NadavLitvak.nadavfragmentdemo. MainActivity"
actionbarsherlock android-fragmentactivity
user2329454
source share