ARQ-1547 Improve the parsing of activities from AndroidManifest.xml