3

I would like to save a Bundle object (parcelable) into SharedPreferences... is this possible?

There is any other option ?

4

1 回答 1

2

According to the documentation it looks like there is no method to save a parcelable object inside shared preferences. Depending on the size of the object you want to save you could choose between serializing it in a string and saving in shared preferences as a string or save it to a file.

于 2013-03-30T18:34:42.823 回答