views:

61

answers:

1

Hello, i was just wondering, if i wanted to reset the actual preference file used with SharedPreferences could i just rename the preference file ? , wouldn't that mean that the file still exist or does overwrite it ?

+1  A: 
prefs.edit().clear().commit(); // prefs = SharedPreferences

is the proper way. Deleting the file with no referencing SharedPreferences objects should result the same.

alex
Thx alot dude :)
Krewie