Code example for Stack

Methods: add

0
	/** 
	 * 将Activity压力栈中 
	 * @param activity 
	 */ 
	public static void pushActivity(Activity activity){
		ActivityStack.add(activity);
	} 
	 
	/** 
	 * 将顶端的Activity弹出栈顶 
	 * @return 
	 */ 
	public static Activity popActivity(){
		return ActivityStack.lastElement();
	} 
	 
	/** 
	 * Activity栈回退到某个Activity 
	 * @param target 
	 */ 
	public static void rollbackTo(Class<? extends Activity> target){