added XActivity and XResources annotations.