Code example for FragmentActivity

Methods: onBackPressed

0
			if(mTwoPane && fragementDetail != null){ 
				fragementDetail.reset(); 
			} 
			fragmentList.reloadFile(); 
    	}else{ 
    		super.onBackPressed(); 
    	} 
	} 
 
    @Override 
    public void onItemSelected(String id) { 
        if (mTwoPane) { 
            Bundle arguments = new Bundle(); 
            //FileCodeMirrorFragment fragment = new FileCodeMirrorFragment(); 
            FileCodeMirrorFragment fragment = new FileCodeMirrorFragment(); 
            fragment.setArguments(arguments); 
            getSupportFragmentManager().beginTransaction() 
                    .replace(R.id.file_detail_container, fragment) 
                    .commit(); 
 
        } else {