Android market tab Effect without fragments
<p>I want to create a tab Activity like the android market.</p>

<p>I have found a tutorial doing it here :  <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator" rel="nofollow">https://github.com/JakeWharton/Android-ViewPagerIndicator</a></p>

<p>My problem is that i don't want to use fragments (because they are not supported from older that 2.3 android) but activities.Is that possible?</p>

<p>This is my code:</p>

<pre><code>public class Activity extends FragmentActivity {
    private PagerAdapter mPagerAdapter;
    static final String[] CONTENT = new String[] { "categories", "Featured",
            "Top Paid", "Top Free", "Top Grossing", "Top New Paid",
            "Top New Free", "Trending", "Staff choices", "Editor's Choices" };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);

        super.setContentView(R.layout.simple_tabs);

        // initialize the pagerz
        this.initialisePaging();
    }

    /**
     * Initialize the fragments to be paged
     */
    private void initialisePaging() {

        List&lt;Fragment&gt; fragments = new Vector&lt;Fragment&gt;();
        fragments.add(Fragment.instantiate(this, frag3.class.getName()));
        fragments.add(Fragment.instantiate(this, frag4.class.getName()));

        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));
        fragments.add(Fragment.instantiate(this, frag0.class.getName()));

        this.mPagerAdapter = new FragmentPagerAdapter2(super
                .getSupportFragmentManager(), fragments);

        ViewPager pager = (ViewPager) super.findViewById(R.id.pager);
        pager.setAdapter(this.mPagerAdapter);
        pager.setCurrentItem(1);
        TabPageIndicator indicator = (TabPageIndicator) findViewById(R.id.indicator);
        indicator.setViewPager(pager);
        indicator.setCurrentItem(1);

    }

}
</code></pre>
