On Wed, May 25, 2011 at 5:49 AM, String <[email protected]> wrote: > Coincidentally(?), just this morning I've come across two examples of SDK > features working in API levels where, according to the documentation, they > really shouldn't. > The first is Bitmap.setHasAlpha(), which the docs say was just added in API > level 12, and which I've certainly never noticed before in nearly 2 years of > heavy Bitmap work. However, it seems to be working back to (at least) API > level 7 (Android 2.1); it's not working on level 4 (1.x), and I don't have > environments for 5 or 6 (2.0x) to test on. > The second is the AndroidHttpClient class, documented as level 8 and above, > but which I've confirmed to be working fine all the way back to level 3 > (1.5)! > Possibilities I can imagine: > - They're both mis-documented > - They existed but were undocumented before the published API levels > - ???
If they had existed but marked as @hide before, the un-@hide-ing of them will mean code compiled with the newer SDK will run on older ones. However, there is no guarantee that, just because the class and method signatures are the same, that the behavior in older versions matches the documented current behavior. IOW, your mileage may vary. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- 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

