title: Android - passing data from activity to fragment in tab view
body: <p>I have this code in onCreate of the activity:</p>
  
  <pre><code>    ...
      mTabsAdapter.addTab(bar.newTab().setText("Monuments"),
              ElencoMonumentiFragment.class, args);
      mTabsAdapter.addTab(bar.newTab().setText("Map"),
              MappaMonumentiFragment.class, args);
      ...
  </code></pre>
  
  <p>The method addTab is defined like this:</p>
  
  <pre><code>public void addTab(ActionBar.Tab tab, Class&lt;?&gt; clss, Bundle args) {     
      TabInfo info = new TabInfo(clss, args);
      tab.setTag(info);
      tab.setTabListener(this);
      mTabs.add(info);
      mActionBar.addTab(tab);
      notifyDataSetChanged();
  }
  </code></pre>
  
  <p>How can I retrive the "args" parameter (that is a Bundle) from the Fragment?</p>
  
  <p>What I wont to do is to pass a String to the Fragment when I add it in the Activity, like when a call putExtra on an Intent.</p>
  
  <p>Thanks for the answers!</p>