As per the StrictMode article (
http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html
), I devided to switch over using apply() instead of commit() for my
SharedPreferences.

So I wrote my nice conditional logic based on the API level and to
test to see what happens, I ran it on my 2.2 Nexus One, fully
expecting a VerifyError because of the missing API.  To my surprise, I
didn't get that error.  So I fired up the emulator and confirmed that
all the day down to Level 7, the supposedly new API does not trigger a
VerifyError.  It does level 4 or below as expected.

What's going on here?  Has the apply() method really been there since
Level 7 undocumented?  If so, is it safe for me to check if the
current API level >= 7 and use apply()?

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

Reply via email to