def get_activity_name(activity):
    """
    Extract the name of an activity out of the name with additional android XML tags.

    :param activity: 'Dirty' name.
    :type activity: str

    :return: The name of the activity.
    """
    for key in activity.attrib.keys():
        if key.endswith("name"):
            return activity.attrib[key]