@FROM http://androidappdocs.appspot.com/sdk/android-2.2.html
Media
- New APIs in
android.media.AudioManager
for managing audio focus, transport control, transient loss of audio focus, ducking. - New broadcast intent for routing audio to SCO —
ACTION_SCO_AUDIO_STATE_CHANGED
with extras indicating new state. - New APIs in
SoundPool
to detect completion of sound-loading. - New APIs in
SoundPool
for auto pause and resume. - New APIs in
MediaRecorder
for specifying audio settings for number of channels, encoding and sampling rates, sampling rate. - New APIs for adding files to the media database, so that they are automatically scanned. See
MediaScannerConnection.scanFile
andMediaScannerConnection.OnScanCompletedListener
.
Speech recognition and third-party recognition engines
- The platform provides new speech-recognition APIs that allow applications to have a richer interaction with the available voice recognizer. For example, the APIs are sufficient to integrate voice recognition deeply into an IME.
- The platform also provides a
RecognitionService
base class that lets third-party developers create plug-in recognition engines. - New
RecognitionListener
interface to receive callbacks. - New
RecognizerIntent
extras that let a requester app specify details as preferred language, minimum length in milliseconds, and so on.
Camera and camcorder
- Changes to camera preview API to improve efficieny of preview pipeline.
- New display orientation for camera (it can now work in portrait orientation).
- New APIs in
android.hardware.Camera
for managing zoom level. - New APIs
android.hardware.Camera.Parameters
for querying and setting device camera settings such as focal length, exposure, zoom level, view angle, and others. - New
thumbnail
utility for video and image thumbnails. - New
CamcorderProfile
andCamcorderProfile
classes enable apps to determine device hardware camera capablities. - New support in
android.media.ExifInterface
for retrieving GPS and focal length.