private void addActivityToStack ( Activity activity ) { activitiesStoredInActivityStack . push ( activity . toString ( ) ) ; weakActivityReference = new WeakReference < Activity > ( activity ) ; activity = null ; activityStack . push ( weakActivityReference ) ; }
Adds an activity to the stack