The android.content.SharedPreferences.Editor.apply method is used to save the preferences data asynchronously from the UI thread efficiently. This method updates the stored values with the new values and lets us know the success or failure through a boolean return value.
Note: This method was added in API version 9 (Android 2.3).
Java SharedPreferences.Editor.apply - 30 examples found. These are the top rated real world Java examples of android.content.SharedPreferences.Editor.apply extracted from open source projects. You can rate examples to help us improve the quality of examples.