What Is New in Android 2.1
| Category | Key Updates |
|---|---|
| New Features | Live Wallpapers, Speech-to-Text API, Quick Contacts |
| User Experience | Revamped Browser, Camera & Gallery enhancements |
| APIs & Development | New Bluetooth, WebView, and SyncAdapter APIs |
| Platform | Updated kernel, Microsoft Exchange support |
What are the major user-facing features in Android 2.1?
Android 2.1 introduced Live Wallpapers, letting users set animated, interactive backgrounds. The update also brought a system-wide Speech-to-Text API, enabling voice input in any text field. The Camera app was overhauled with features like flash support, digital zoom, and scene modes.
In practice, Live Wallpapers became a major differentiator for Android, showcasing its graphical capabilities. The speech input was a foundational step for future voice-controlled features like Google Now.
How did Android 2.1 improve the web browsing experience?
The Browser received a significant UI refresh with a revamped address bar and bookmark management. It also added support for double-tap zoom and HTML5 features like <video> tags. This brought the built-in browser much closer to a desktop-class experience.
For developers, the updated WebView component meant that hybrid apps could leverage these new HTML5 capabilities, making embedded web content more powerful and interactive.
What new APIs were most important for developers?
The Speech-to-Text API allowed any application to incorporate voice recognition by simply adding an android:inputType attribute. New Bluetooth APIs (BluetoothProfile, BluetoothProfile.ServiceListener) enabled communication with a wider range of devices.
The SyncAdapter API was a game-changer for background data synchronization. It provided a standardized, battery-efficient framework for apps to sync data with cloud services, which was far superior to rolling your own sync solution with alarms and services.
Were there any under-the-hood platform changes?
Yes, the kernel was updated, which improved overall system performance and hardware compatibility. A major addition was full support for Microsoft Exchange, including calendar sync and global address list lookup, making Android a viable option for enterprise users.
The Gallery app was also deeply integrated with Picasa Web Albums, blurring the line between local and cloud storage. This set a precedent for the deep cloud integration that would become standard in Android.
FAQ
Can I use the Speech-to-Text API on older Android versions?
No, the API is only available on Android 2.1 (API level 7) and higher. You must check the device's OS version before attempting to use it or your app will crash on older devices.
How do Live Wallpapers impact performance?
They can be heavy on battery and CPU if not optimized properly. As a developer, you should provide performance settings and ensure your wallpaper sleeps when not visible.
What's the benefit of using SyncAdapter over a custom Service?
The SyncAdapter framework manages scheduling and battery life for you. It batches sync operations across the system and ties them to system events, which is much more efficient.
Is the new Bluetooth API backward compatible?
The new profiles require Android 2.1, but you can use reflection or conditionally check the API level to maintain compatibility with older devices while adding new features for capable ones.
Did the HTML5 video support include all codecs?
No, codec support was still dependent on the device hardware. You often had to provide multiple video formats (like MP4 and WebM) to ensure broad compatibility across different devices.