2013-01-15 42 views

回答

0
shared_preferences= PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); 
editor =shared_preferences.edit(); 
editor.putString("test","Done"); 
editor.commit(); 
0

我有同樣的問題儘管我使用的是API LEVEL 17.
此行解決了我的問題:

SharedPreferences.Editor.commit();

相關問題