title: How to convert an Activity to FragmentActivity?
body: <p>So far this is what I attempted. This is from the Activity that sets up the fragments. This is the method for loading the fragments.</p>
  
  <pre><code>@Override
  public Fragment getItem(int i) {
        Fragment f = new Fragment();
        FragmentActivity fa = new FragmentActivity();
  
        switch(i){
        case 0:
           f=News.newInstance(_context);
        break;    
        case 1:
           f=Info.newInstance(_context);
        break;
        case 2:
           //f=Info.newInstance(_context);
           fa=Files.newInstance(_context);
        break;
        case 3:
           f=Donate.newInstance(_context);
        break;
  }
  </code></pre>
  
  <p>Next I setup the Files class so that it can load the Activity via me converting it to <code>FragmentActivity</code>. I dont want to use a <code>ListFragment</code>, as I want to make some button and set the <code>onclicklistener</code> for them.</p>
  
  <pre><code>public class Files extends FragmentActivity {
  
        private ListView m_listview;
  
        @Override
        public void onCreate(Bundle savedInstanceState)
        {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.files);
  
          m_listview = (ListView) findViewById(R.id.id_list_view);
  
          String[] items = new String[] {"Item 1", "Item 2", "Item 3"};
          ArrayAdapter&lt;String&gt; adapter =
            new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, items);
  
          m_listview.setAdapter(adapter);
        }
  
      public static FragmentActivity newInstance(Context _context) {
           Files f = new Files();
  
              return f;
      }
  }
  </code></pre>
  
  <p>Right now when I run the app, there are no errors, nothing in the stack trace, and when I hit the tab to load that <code>FragmentActivity</code>, its just blank. I tried removing the <code>listview</code> and all, and just put a <code>textview</code> in the XML layout and that doesn't even appear when I attempt it.</p>