Can you explain how can I set IDs of themes in array.xml ? All that would change:
int themeID = this.getResources().getIdentifier(themeName, "style", this.getPackageName());
int themeID = Integer.parse(themeName);