I\'ve found this crash in crash logs. I don\'t know when it is happening. Can someone give me advice what is the reason? Maybe someone has same crash.
java.util.
We had seen this exception when using the SharedPreferences getStringSet
method. This method returns a set that should not be modified. Modifying this set while the SharedPreferences object is being serialized to flash will produce a ConcurrentModificationException.
This will also happen if you use getAll
and modify the returned map.
See the documentation
Someone have already answered this question, you might be interested to take a look at: ConcurrentModificationException in Android while accessing Shared Preferences