Code example for ActivityGroup

Methods: getLocalActivityManager

0
		}else if(selected==2){
			intent = new Intent(MainActivity.this, SaveLocationActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
			tag = "SaveLocationActivity";
		} 
		 
		 Window subActivity = group.getLocalActivityManager().startActivity(tag,intent); 
		 container.removeAllViews();
         //��������View   
         container.addView(subActivity.getDecorView(),  
                LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);  
	} 
	 
/*	 
	@Override 
	public void onBackPressed() { 
		// TODO Auto-generated method stub 
//		super.onBackPressed(); 
		//�Ѻ����¼�������Activity���� 
		group.getLocalActivityManager() 
			.getCurrentActivity().onBackPressed(); 
	}