Update ActivityManager.java