@Override protected void onDestroy() { ContainerActivity.activities.remove(this); super.onDestroy(); }