title: Using ActionBar.tabListener
body: <p>Implementing a TabListener without creating a new class but from a thing like this:</p>
  
  <pre><code>tab.setTabListener(new ActionBar.TabListener() {
      @Override
      public void onTabSelected(Tab tab, FragmentTransaction ft) {
          // TODO Auto-generated method stub
          String mirror = "www.something.com";
  
          if (!file.exists()){
              ScaricaLog scarica = new ScaricaLog();
              scarica.execute(mirror, file.toString());
              visualizza(file);
          }
          else {
              visualizza(file);
          }       
      }
  
      @Override
      public void onTabReselected(Tab tab, FragmentTransaction ft) {
          // TODO Auto-generated method stub
      }
  });
  </code></pre>
  
  <p>How can I retrieve a reference to the Fragment to execute, in onTabUnselected method, ft.remove that reclaim it?
  Is it really mandatory to create a Fragment-extended class?</p>
  
  <p>Thanks guys and sorry for mistakes ;)</p>