I'm creating a swipeable Sherlock tab. I used this tutorial to do it:
Android ActionBarSherlock ViewPager Tabs Tutorial
However when I want to start an activity from inside of a fragment (for example FragmentTab1) I need context to create intent and start activity. I'm in the Fragment class and don't have access to context! I can't use getActivity() too, because FragmentTab1 is created inside of getItem() function in FragmentPagerAdapter class. What should I do?!