Code example for LocalActivityManager

Methods: getActivity, startActivity

0
		mViewPager.setCurrentItem(0);
		visible(0); 
	} 
	 
	private void initTabContainer() { 
		View tab1 = mManager.startActivity(TAG[0], new Intent(this, ActivityTabHome.class)).getDecorView();
		View tab2 = mManager.startActivity(TAG[1], new Intent(this, ActivityTabAlarm.class)).getDecorView();
		View tab3 = mManager.startActivity(TAG[2], new Intent(this, ActivityTabSetting.class)).getDecorView();
 
		tabs = new ArrayList<IViewPagerChangeListener>();
		if (mManager.getActivity(TAG[0]) instanceof IViewPagerChangeListener) {
			tabs.add((IViewPagerChangeListener) mManager.getActivity(TAG[0]));
		} 
		if (mManager.getActivity(TAG[1]) instanceof IViewPagerChangeListener) {
			tabs.add((IViewPagerChangeListener) mManager.getActivity(TAG[1]));
		} 
		if (mManager.getActivity(TAG[2]) instanceof IViewPagerChangeListener) {
			tabs.add((IViewPagerChangeListener) mManager.getActivity(TAG[2]));
		} 
 
		views = new ArrayList<View>();
		views.add(tab1);
		views.add(tab2);