On Mon, May 9, 2011 at 5:48 AM, laborg <gerhard.aig...@gmail.com> wrote:
> Thx! You gave me the hint to check the code and If my understanding is
> right the implementation (editor.commit()) has changed between 2.2 and
> 2.3 (2.3 runs in the main thread, 2.2 doesn't have this feature). It
> would be interesting to see the API documentation for 2.2

commit() has existed since Android 1.0. apply() is the new one.
apply() uses a background thread; commit() never has. In fact, that is
the reason apply() was added -- so saving SharedPreference changes
could be done off the main application thread.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to