Android 1.5 1.6 2.0 2.1 2.2 differences

Source: Internet
Author: User

Android 1.5 API change Overview:

UI framework

· Framework for easier background/UI thread Interaction
· New slidingdrawer component
· New horizontalscrollview component
Appwidget framework
· Some APIs for creating desktop appwidgets.
· Provides the API for creating livefolders based on custom content
Media framework
· Sound Recording and playback APIs
· Interactive MIDI playback Engine
· The Video Recording API used by developers (3GP format ).
· Video photo sharing intents
· Media search intent
Input Method Framework
· Input Method service framework
· Text prediction Engine
· Provide IME with download capability to users
Application-defined hardware requirements
Applications can define hardware requirements. Applications can define hardware requirements required by this program, for example, whether a physical keyboard or trackball is required.
Speech Recognition Framework
· Supports Speech Recognition libraries.
Miscellaneous API Additions
· Locationmanager-the application can receive location change information.
· Support for webview-touch start/end/move/cancel DOM events
· Rebuilding sensor manager APIs

· Glsurfaceview-more convenient framework for creating OpenGL applications.
· Successful software upgrade and installation of broadcast intent-more peaceful and excellent software upgrade experience

Android 1.6 API change Overview:
UI framework
· The new Android. View. animation class controls animation behavior:
O anticipateinterpolator
O anticipateovershootinterpolator
O bounceinterpolator
O overshootinterpolator
· The New XML Attribute Android: onclick describes the view. onclicklistener of a view from a layout file.
· New support for screens with different resolutions. bitmap and canvas will be scaled accordingly. The framework will automatically scale Bitmap Based on screen resolutions and other content.
To use the APIS contained in Android 1.6 in your application, you must set the & quot; 4 & quot; attribute in the manifest element.
Search framework
· The application can now publish relevant content, which is recommended to be placed in the quick search box. The search function within the new device range can be searched from the home screen. To support this, the search framework adds a new property to the searchable metadata file. For complete information, see searchmanager
Documentation.
Accessibility framework
· New Android. Accessibility package that includes des classes for capturing accessibility events and forwarding them to an accessibilityservice handler.
· New accessibilityservice package that lets your application track user events and provide visual, audible, or haptic feedback to the user.
Gesture Input
· New gesture API: Create, recognize, read, and save gestures.
Text-to-speech
· The new Android. Speech. TTS package provides the TTS text reading function to generate a sound file for playback from a text file.
Graphics
·
The class in Android. Graphics now supports scaling for different screen sizes.
Telephony
· The New smsmanager sends and receives text messages.
Utilities
· The New displaymetrics field determines the screen density of the current device.
Android manifest Elements
O New Elements
O new labels
O glesversion: specify the minimum version of OpenGL ES
·
New attributes of the element:
O target SDK version: The application can specify the target version. it can run in the old version (as low as minsdkversion), which is developed according to the specified version of the application. specifying this version allows the platform to disable compatibility code that is not required or enable newer features that are not available to older applications.
O maxsdkversion: specify the maximum version of the program to run. Important: read the document carefully before using these attributes.
New Permissions
· Change_wifi_multicast_state: allows applications to enter the Wi-Fi multi-point transmission mode.
· Global_search: allows a global search system to precisely determine the content provider.
· Install_location_provider: allows the application to install a location provider in location manager.
· Read_history_bookmarks: allows applications to read (cannot write) user browsing records and bookmarks.
· Write_history_bookmarks: allows applications to write (cannot read) user browsing records and bookmarks.
· Write_external_storage: allows programs to write data to external storage. the application uses API Level 3 to grant this permission by default (which is visible to the user); the application uses API level4 or higher and must explicitly declare this permission.

Android 2.0 API change Overview:
Bluetooth
· Enable and disable Bluetooth
· Device and service discovery
· Use RFCOMM to connect a pluggable device to send and receive data
· Publish RFCOMM service and listen to receive RFCOMM connections
Sync adapters
· The new APIs synchronizes the bridge adapter to connect to any backend
Account Manager
· Centralized account manager APIs, secure storage and use of trusted tokens/passwords
Contacts
· The New Communication APIs allows you to obtain data from multiple accounts.
· The new fast communication framework APIs allows developers to create a communication tag in their applications. one-click tag opens a new window showing how to contact the current person.
Webview
· Classes not supported: urlintercepthandler, plugin, plugindata, pluginlist, and urlinterceptregistry.
Camera
· New Features of color mode, scene mode flash mode, focus mode, white balance rotation and other settings.
· When the scaling level changes, a new scaling callback interface is called back.
Media
· Mediascanner now generates a thumbnail for all images. When they are inserted into mediastore.
· New thumbnail API: used to retrieve the image and video thumbnail.
Other framework
· Android. r. the new system theme in the style can display the current acitivities system wallpaper or keep the previous activity in the background. the new wallpaper manager API replaces and adds wallpaper APIs. We can allow our applications to set system wallpapers.
· The new service APIs helps the application accurately process the service lifecycle. The service will be disabled under the specified low memory status.
O service. setforeground () is not recommended, and this method is not actually executed now .. it is replaced by a new API, startforeground (), that helps (and requires) associating an ongoing notification with the foreground state.
· Motionevent: if the device permits it, motionevent will return multi-point touch information. A maximum of three points can be obtained simultaneously.
· Keyevent now has a new button to send APIs to help implement action-on-up and long button actions. A new mechanism is used to cancel the button (Virtual button ).
· Windowmanager. layoutparams now has a new constant that allows the window to wake up the screen when it is locked or in other situations. This allows applications such as alarm clocks to wake up the device.
· Connection status of the new intent APIs broadcast device. when the device is placed on the desktop or in the parking lot, special activities can be started by the program.
Key events executed on key-up
Android 2.0 can use virtual buttons home, menu, back, and search, instead of physical buttons, to provide users with the best user experience on their devices, the Android platform now adds these buttons to key-up and performs key-down/key-up pairs instead of key-down ., this helps prevent unexpected button events and allows the user to press the button area and drag the button without generating an event.
This change will only affect your application. If it is an intercept button event, it is best to use key-down instead of key-up .. In special cases, if your application intercepts the back key, you should ensure that your application properly handles the button event.

Android 2.0.1 API change Overview:
· The New quickcontactbadgestyle * attribute allows the application's quickcontactbadge component to receive the necessary style.
· When the filter is declared in manifest, action_configuration_changed broadcast is removed. To receive the broadcast, the application must register registerreceiver (broadcastreceiver, intentfilter ).
Performance Changes:
Bluetooth
Changed the returned values of action_request_enable and action_request_discoverable.
· Action_request_enable: If Bluetooth is enabled successfully, result_ OK is returned. If the user rejects the request to enable Bluetooth, result_canceled is returned.
· Action_request_discoverable: if the user refuses to enable the Bluetooth or Bluetooth discoverable function, result_canceled is returned.
Communication
The action_insert intent returns result_canceled in cases where the contact was not persisted (for example, save the cut to an empty operation ).
Fixed errors:
Resources
Now the framework can be selecting a folder of application resources based on API levels (drawable-v4 is the resource used by API level4). The current version of this function does not work properly and the problem has been fixed.
Contacts
The action_insert intent now returns the appropriate kind of Uri when the request is made using the (now deprecated) Contacts APIs.
Other framework fixes
· Getcallingpackage () is now the correct report package name, not the process name.

Android 2.1 API change Overview:
Live wallpapers Dynamic Desktop
The following APIs can be used to develop dynamic desktops:
· New Android. Service. wallpaper package.
· New wallpaperinfo class.
· Upgraded wallpapermanager.

NOTE: If your application provides the live wallpapers function, you must add an element to your application manifest. android: Name = & quot; android. software. live_wallpaper & quot ;. example:
Phone number

· The New signalstrength class provides some information about the current network signal. This information can be called back from onsignalstrengthschanged (signalstrength.

· New ondataconnectionstatechanged (INT, INT) callback.
Views
· The New View method isopaque () and ondrawscrollbars (canvas ).
· New remoteviews Methods addview (INT, remoteviews) and removeallviews (INT ).

· The New viewgroup method ischildrendrawingorderenabled () and setchildrendrawingorderenabled (Boolean ).

WebKit
· New webstorage Method for webpage data caching.
· The New geolocationpermissions method obtains the source of geolocation permissions and sets them to webview.
· The New websettings method manages software caches, Web Cache, and screen scaling.
· The New webchromeclient method processes videos, history records, custom views, and software cache restrictions.

Android 2.2 API change Overview:

For Microsoft
Exchange provides better support. Several new features of Android make it more suitable for the exchange enterprise environment. Some of the new features are listed as follows:

Automatic detection of exchange accounts based on user names/passwords
Supports Exchange Calendar synchronization.
With improved security, administrators can enforce security policies across devices.
Restore exit settings-the administrator can reset the device to exit settings so that the sensitive data can be erased after the device is stolen or lost.
Global Address List lookup-you can help the user automatically fill in the recipient's email address based on the list returned by the server
Device management API. Android 2.2 has improved and added a large number of device Management APIs, which can be used by developers in applications:
Application Data Backup API-you can back up application data to the cloud. If you switch to another Android device, you can recover data from the previous device.
Cloud-to-device message API. Users/systems in the cloud can use this enhancement to trigger actions on devices. This feature can send mobile warnings to mobile phones and support two-way push synchronization services.
You can directly install an application on an external memory device (SD card), migrate the application from the internal device to the SD card, and vice versa.
Network Sharing. Android 2.2 can connect multiple services to the Internet through a hotspot provided by an Android phone.

Performance. With the new Dalvik JIT compiler, Android 2.2 is faster than Android 2.1 for CPU-intensive applications ~ 5 times. Based on the linpack benchmark test results, froyo nexus is installed.
One phone can reach 37.5 mflops, and the same phone number can only reach 2.1 mflops if Android 6.5 is used.

Faster browsing speed. Because the browser now uses the chrome V8 engine, JavaScript code processing speed is 2 ~ Faster than Android 2.1 ~ 3 times.

Access the device API from the browser. Now, you can directly access a large number of device APIs from your browser, such as accelerators, cameras, voice recognition, and translation, so that Web applications can interact with devices in an unprecedented way. For example, you can upload a photo to the Internet after it is taken, and all this is done in a browser.

Flash 10.1 is supported. Froyo supports the latest flash 10.1
Beta version. Recently, the introduction of JIT compiler has greatly improved the performance, which has played a huge role in the running of flash applications, because we all know that flash applications are CPU-intensive applications.

Android store. Android 2.2 developers and store users will benefit from the following new features:

You can search for apps in the Android store, including APP data.

Update -- all applications are automatically updated after you click the button once.

Crash and freeze reports. Android
2.2 integrates the crash/freeze report feature so that the user can report the complete details to the application publisher during the crash.

Browse the store from the PC and download the application directly to the device. You can select the Store application on the PC, and then the application can be sent to the loaded device. To use this feature, You need to log on and register the device in the Android store-
Music management. You can convert all non-DRM music from Windows Media or Mac iTunes to Android devices for playback.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.