Code example for LocalActivityManager

Methods: getCurrentActivitygetCurrentId

0
        view.setLayoutParams(params);
	} 
	 
	public void ToHistoryList() 
	{ 
		Activity activity=activityManager.getCurrentActivity();
		Window w1=activity.getWindow();
		View v1=w1.getDecorView();
		 
		Intent intent=new Intent(HistoryGroup .this,HistoryList.class);
        Window subActivity=getLocalActivityManager().startActivity("HistoryList",intent);
        final View view=subActivity.getDecorView();
          
		 
		Animation sAnimation=new HistoryRotateAnim(0, 90, 0.0f, 0.0f,sWidth/2 , sHeight/2,true);
		final Animation sAnimation1=new HistoryRotateAnim(-90, 0, 0.0f, 0.0f,sWidth/2 , sHeight/2,false);
		sAnimation.setAnimationListener(new Animation.AnimationListener() {
			 
			@Override 
			public void onAnimationStart(Animation animation) {}
			 
			@Override 
			public void onAnimationRepeat(Animation animation) {}
			 
			@Override 
			public void onAnimationEnd(Animation animation) {
				// TODO Auto-generated method stub 
				rootLayout.addView(view); 
				 LayoutParams params=(LayoutParams) view.getLayoutParams();
		        params.width=LayoutParams.FILL_PARENT;
		        params.height=LayoutParams.FILL_PARENT;
		        view.setLayoutParams(params);
		        view.startAnimation(sAnimation1);
			} 
		}); 
		v1.startAnimation(sAnimation);
		rootLayout.removeAllViews();
	} 
	 
	@Override 
	public boolean dispatchKeyEvent(KeyEvent event) {
		// TODO Auto-generated method stub 
		if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { 
	        if (event.getAction() == KeyEvent.ACTION_DOWN 
	                && event.getRepeatCount() == 0) { 
	        	String strid=activityManager.getCurrentId();
	    		if(strid==null)
	    		{ 
	    			return super.dispatchKeyEvent(event);
	    		} 
	    		else if(strid.equals("HistoryPage"))