What's the first step when writing persistent data using a SharedPreferences file?

What's the first step when writing persistent data using a SharedPreferences file?


a. Create a SharedPreferences.Editor object
b. Obtain an instance of the SharedPreferences file
c. Assign values into SharedPreferences objects
d. Save the values to the preferences file


Answer: b. Obtain an instance of the SharedPreferences file


Learn More :