title: How to add an item from the Activity in ListFragment?
body: <p>How to add an item from the Activity in ListFragment?</p>
  
  <pre><code>public class LoadObjects extends ListFragment 
  {
  
      String data[] = new String[] { "one", "two", "three", "four" };
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(
                  getActivity(),
                  android.R.layout.simple_list_item_1,
                  data);
          setListAdapter(adapter);
      }
  }
  </code></pre>
  
  <p><strong>How can I upload the menu items of the Activity in this FragmentList? Please give an example or a link.</strong></p>