You must save the XML file in the res/xml/ directory. Although you can name the file anything you want, it's traditionally named preferences.xml . You usually ...
developer.android.com