title: non static method getsupportfragmentmanager() cannot be referenced from static context
body: <p>I got the following error while I calling the <code>FragmentPageAdapter</code> from static context android:</p>
  
  <blockquote>
    <p>ERROR: non static method getSupportFragmentManager() cannot be
    referenced from static context .</p>
  </blockquote>
  
  <pre><code>ViewPager.setAdapter(new TabsPagerAdapter(getSupportFragmentManager(), 
                                            myCategory, cxt));
  ViewPager.setCurrentItem(ViewPager.getCurrentItem());
  slidingTabLayout.setViewPager(ViewPager);
  </code></pre>