The `clear()` method in `android.content.sharedpreferences.Editor` is used to remove all the key-value pairs from the SharedPreferences object that are being edited. It clears all the entries from the editor and prepares it for a fresh set of values. The `clear()` method does not commit the changes immediately; instead, you need to call `commit()` or `apply()` method to save the changes made by `clear()`.
Java Editor.clear - 30 examples found. These are the top rated real world Java examples of android.content.SharedPreferences.Editor.clear extracted from open source projects. You can rate examples to help us improve the quality of examples.