Generates Java source for activity declarations in the XML layout.