Code example for LocalActivityManager

Methods: getActivity, startActivity

0
		return mViewPager.getCurrentItem();
	} 
 
     
    public Activity getItemActivity(int position) {
        return mLocalActivityManager.getActivity(String.valueOf(position));
    } 
     
    public void setupFlingParm(ArrayList<StartParameter> as, int layoutResId, int indicatorResId, int pagerResId) {
        flingViewClass = as;
        pagernums = as.size();
 
        mLayoutResId = layoutResId;
        mIndicatorResId = indicatorResId;
        mPagerResId  = pagerResId;
    } 
 
    private View activityToView(Intent intent){
        //LocalActivityManager mLocalActivityManager = new LocalActivityManager(parent,true); 
        final Window w = mLocalActivityManager.startActivity(
        String.valueOf(intent.getFlags()), intent);
        final View wd = w != null ? w.getDecorView() : null;
        if (wd != null) {
            wd .setVisibility(View.VISIBLE);
            wd .setFocusableInTouchMode(true);