android-developers  

[android-developers] Android 2.0.1 / SDK Level 6 or 7 or what?

Mariano Kamp
Fri, 05 Feb 2010 12:57:48 -0800

I see changed behavior in WebView on 2.0.1 devices, so I just read up
(however little there was - very quick read) on
WebSettings.getDefaultZoom(). It says Level 7. I checked the 2.0.1 SDK and
it returns Level 6. However when checking for the method getDefaultZoom()
with reflection, yay, it is there. That also explains the changed behavior.

Am I missing something here or is this the right approach? Should I check
for the existence of methods to find out what version I am dealing with?
What happens when an existing behavior changes without adding new methods,
like WebView did between 1.6 and 2.0? What is the level information in the
API docs good for?

-- 
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
  • [android-developers] Android 2.0.1 / SDK Level 6 or 7 or what? Mariano Kamp