Code example for FragmentActivity

Methods: onStart

0
        actionBar.setDisplayUseLogoEnabled(true);
    } 
 
    @Override 
    public void onStart() { 
        super.onStart(); 
        setNewsCategory(0); 
    } 
 
    /** Sets the displayed news category. 
     * 
     * This causes the headlines fragment to be repopulated with the appropriate headlines. 
     */ 
    void setNewsCategory(int categoryIndex) {
        mCatIndex = categoryIndex;
        mCurrentCat = NewsSource.getInstance().getCategory(categoryIndex);
        mHeadlinesFragment.loadCategory(categoryIndex);
 
        // If we are displaying the article on the right, we have to update that too 
        if (mIsDualPane) {
Connect your IDE to all the code out there  Get Codota for Java