Code example for Stack

Methods: push

	 * Creates a new activity stack and pushes the start activity  
	private void createStackAndPushStartActivity(){ 
		activityStack = new Stack<WeakReference<Activity>>();
		if (activity != null){
			WeakReference<Activity> weakReference = new WeakReference<Activity>(activity);
			activity = null;
	 * Returns a {@code List} of all the opened/active activities. 
	 * @return a {@code List} of all the opened/active activities 
	public ArrayList<Activity> getAllOpenedActivities()
Contextual code suggestions in your IDE  Get Codota for Java