You can't refer to resources via "data" + numberString + ".xml"
. Resources do not have file extensions.
That being said, assuming that are you are actually getting the resources (e.g., getResources().getIdentifier()
), you'll probably want to suppress the Lint warning for this project.