我知道SharedPreferences有
putString()
、putFloat()
、putLong()
、putInt()
和putBoolean()
方法,但我需要存储一个类型为Serializable
的对象到SharedPreferences中。我该怎么做?