Code example for FragmentActivity

Methods: onAttachFragment

0
        } 
    } 
     
    @Override 
    public void onAttachFragment(Fragment fragment) {    
    	super.onAttachFragment(fragment);    	  
    } 
        
    /* 
     * Depending on the user choice, we launch a new activity  
     * in single view or change the pageDetail fragment content 
     * in a two pane view. 
     *  
     * (non-Javadoc) 
     * @see com.androidmontreal.app.fragments.PageListFragment.Callbacks#onItemSelected(java.lang.String) 
     */ 
    @Override 
    public void onItemSelected(int id) {
    	 
    	if(id==activePageId && id!=-1)
    		return;