Updated Activity.java