Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Actionbar + FragmentActivity

Tags:

android

In my application i have tabs but now i need to add Sherlock Actionbar i know that I need use extends SherlockActivity but early I had FragmentActivity how to fix it ?

public class MainActivity extends SherlockActivity {

Now I have error here beacuse i don't have FragmentActivity.

mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());

Error:

The method getSupportFragmentManager() is undefined for the type MainActivity
like image 255
user1704195 Avatar asked Apr 10 '26 08:04

user1704195


1 Answers

There is SherlockFragmentActivity, I believe, you can extend from that

like image 141
Alexander Kulyakhtin Avatar answered May 05 '26 11:05

Alexander Kulyakhtin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!