1

Android SharedPrefrences

view story
linux-howto

http://stackoverflow.com – I am not sure why my code isn't working, following the android developer guide this should work. I assume that it is because I don't have a preferences file created, I am not sure how to go about that. Could someone take a look and see if I have written everything correctly? public static final String PREFS_NAME = "TestPrefs"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void Save(View v){ SharedPreferences settings = getSharedPreferences(PREFS_NAME, MODE_PRIVATE); final Ed (HowTos)