Code example for FragmentActivity

Methods: onAttachFragment

    public void onAttachFragment(Fragment 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 
    public void onItemSelected(int id) {
    	if(id==activePageId && id!=-1)
Stop searching for code, let great code find you!  Add Codota to your java IDE