Android SDK Version 2.0
Und wieder gibt es eine neue SDK für das Android, ich hatte leider diese Woche noch keine Zeit um die Update auszuprobieren. Auf für Version 1.6 war es mir bisher nicht möglich Änderungen auszuprobieren. Aber jetzt hier einen kleinen Beitrag zu Android SDK 2.0. Pünktlich zum Start des DROID’s von Verizon gibt es auch eine neue Version des Google – Kit’s.
Hier die Zusammenfassung:
API changes summary
Bluetooth
- Turn on/off Bluetooth
- Device and service discovery
- Connect to a remote device using RFCOMM and send/receive data
- Advertise RFCOMM services and listen for incoming RFCOMM connection
Sync adapters
- New APIs for sync adapters to connect to any backend
Account Manager
- Centralized account manager API to securely store and access auth tokens/passwords
Contacts
- New contacts APIs that allow for data from multiple accounts
- New Quick Contact framework APIs enable developers to create contact badges in their app. Clicking on the badge opens a window with a list of ways to contact the person with one click.
WebView
- Deprecated classes: UrlInterceptHandler, Plugin, PluginData, PluginList, UrlInterceptRegistry.
Camera
- New parameters for color effect, scene mode, flash mode, focus mode, white balance, rotation, and other settings.
- New ZoomCallback interface to perform actions when the zoom level has changed.
Media
- MediaScanner now generates thumbnails for all images when they are inserted into MediaStore.
- New Thumbnail API for retrieving image and video thumbnails on demand.
Other Framework
- New system themes in android.R.style to easily display activities on top of the current system wallpaper or keep the previous activity visible in the background.
- New WallpaperManager API replaces and extends the wallpaper APIs that were previously in Context, to allow applications to request and set the system wallpaper.
- New Service APIs to help applications correctly handle Service life-cycle, in particular low memory situations where a Service may be killed while it is running.
- Service.setForeground() has been deprecated and now effectively performs no operation. This is replaced with a new API, startForeground(), that helps (and requires) associating an ongoing notification with the foreground state.
- MotionEvent can now report simultaneous-touch information for devices that support it. Up to three pointers can be tracked simultaneously.
- KeyEvent has new key dispatching APIs, to help implement action-on-up and long press behavior, as well a new mechanism to cancel key presses (for virtual keys).
- WindowManager.LayoutParams has new constants that allow a window to wake up the screen when it is displayed and show the window even if the screen is locked. This allows applications to more cleanly implement things like alarm clocks that should wake the device.
- New Intent APIs that broadcast the docking state of the device and allow applications to launch special activities when the device is placed in a desktop or car dock.