API version notes
From Android Wiki
|Line 13:||Line 13:|
Latest revision as of 08:37, 31 January 2013
The online Android API reference pages only document the latest version of the Android API. In some cases, this will mislead you into how to do things to work with older versions of Android. Instances of such should be documented on this page as we find them.
Classes like AccelerateDecelerateInterpolator etc are shown as inheriting from TimeInterpolator. However, in pre-Honeycomb, they actually inherit from Interpolator, and the getInterpolation method is directly defined in that interface, not inherited from TimeInterpolator (which doesn’t exist pre-Honeycomb).
In SurfaceHolder, all the SURFACE_TYPE_xxx constants are currently marked “deprecated” and “this value is set automatically when needed”. In fact you do need to set type SURFACE_TYPE_PUSH_BUFFERS for camera preview surfaces, at least on Android 2.2.
Thankfully this has been fixed. The ClipboardManager class restores the documentation for the pre-Honeycomb API.