I'm trying to have a checkbox in preferences to check if user wants the application to run on boot.
The settings file is called settings.xml
in is under PROJECT.res.xml.setting.xml
.
But when I try to use this file to read the checkbox on my Receiver, I can't find the setting.xml file.
I've tried the following combinations:
SharedPreferences sharedPrefs = context.getSharedPreferences("R.res.xml.settings.xml", Context.MODE_PRIVATE);
SharedPreferences sharedPrefs = context.getSharedPreferences("R.xml.settings.xml", Context.MODE_PRIVATE);
SharedPreferences sharedPrefs = context.getSharedPreferences(".settings", Context.MODE_PRIVATE);
SharedPreferences sharedPrefs = context.getSharedPreferences("settings", Context.MODE_PRIVATE);
I really don't know what is the correct way ...