Update DynamicActivity.java