Generates Java source with activity declarations in the XML layout.