In Eclipse Classic I am developing an android app that has numerous save SharedPreferences and all with the same name of SharedPreference similar to below:
SavePreferences("NAME_OF_THE_SHAREDPREFERENCE", ("Some random text"));
But I want to change the name of the SharedPreference in another class. This will (if its possible) save me lot of time, instead of changing them one by one.
I know the Ctrl+H comand but I am not able to find the “NAME_OF_THE_SHAREDPREFERENCE”, and/or replace it with another name.
Feel free to ask questions if something is hard to understand by my explinations:-)
Is it because these strings are different?
is different from (missing “THE_”):
Ok, that was just a typo… But you can use Find/Replace in each file Ctrl+F.
I also recommend using a static variable instead of a hard-coded String:
This way you only have to update one location.