Code example for LocalActivityManager

Methods: startActivity

0
            mListener.onTabChanged(tab);
        } 
    } 
     
    private void loadIntentContent(TabItem tab) {
        final Window win = mLocalActivityManager.startActivity(tab.getTag(), tab.getContentIntent());
        final View wd = win != null ? win.getDecorView() : null;
         
        if (mChildView != null && mChildView != wd) {
            if (mChildView.getParent() != null) {
                mContent.removeView(mChildView);
            } 
        } 
         
        if (mChildView != wd) {
            mChildView = wd;
            mContent.addView(mChildView, new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
        } 
    } 
     
    private void loadViewContent(TabItem tab) {