Make constants refer to strings xml file. Remove unused imports.
Change System.out for Log.
Remove the CustomListPreference, use just ListPreference.
Use Set operations to check differences between user selection of
groups.