Android 1.5 API Change Overview:
UI Framework
· Framework for easier background/ui thread interaction
· New Slidingdrawer Components
· New Horizontalscrollview Components
Appwidget Framework
· Some APIs about creating desktop Appwidget.
· Provides an API to create livefolders based on custom content
Media Framework
· Original sound recording and playback APIs
· Interactive MIDI playback engine
· The video recording API (3GP format) used by the developer.
· Video photo sharing Intents
· Media Search Intent
Input Method Framework
· Input Method Service Framework
· Text prediction engine
· Provides a download-capable IME to consumers
application-defined Hardware Requirements
Applications define hardware requirements, and an application can define what hardware requirements this program requires. For example, whether a physical keyboard or trackball is required.
Speech Recognition Framework
· Supports speech recognition libraries.
Miscellaneous API Additions
· Locationmanager-Applies information that can receive location changes.
· WebView-Support for touching start/end/move/cancel DOM events
· Rebuilding sensor Manager APIs
· Glsurfaceview-Create a more convenient framework for OpenGL applications.
· Software upgrade installation Successful broadcast Intent-a more peaceful and excellent software upgrade experience
Android 1.6 API Change Overview:
UI Framework
· The new class Android.view.animation controls animation behavior:
o Anticipateinterpolator
o Anticipateovershootinterpolator
o Bounceinterpolator
o Overshootinterpolator
· The new XML attribute Android:onclick, which describes a View's view.onclicklistener from a layout file.
· New support for screens with different resolutions. Targeted scaling behavior is performed for bitmap and canvas. The framework automatically scales bitmap, depending on screen resolution and other content.
To use the Android 1.6 included API in your application, you must set the "4" attribute in the manifest element
Search Framework
· The application can now expose relevant content, as suggested by putting in the Quick search box, the new device-wide search function that is available from the home screen search. To support this, the search framework adds new properties to the searchable metadata file. For complete information, see Searchmanager
Document.
Accessibility framework
· New Android.accessibility package that includes classes for capturing accessibility events and forwarding to a them Sibilityservice handler.
· New Accessibilityservice package that lets your application track user events and provide visual, audible, or haptic feedb Ack to the user.
Gesture Input
· New gesture APIs: Create, identify, read, and save gestures.
Text-to-Speech
· The new Android.speech.tts package provides TTS text reading to generate playback of a sound file from one text.
Graphics
·
Class in Android.graphics, now supports scaling for different screen sizes.
Telephony
· New Smsmanager send and receive SMS.
Utilities
· The new Displaymetrics field determines the density of the current device screen.
Android Manifest Elements
o The new element
O New Label
O glesversion: Specifies the minimum OpenGL ES version
·
The new properties of the element:
O Target SDK version: The application can specify the target version. It was able to run in the old version (low to minsdkversion), and he was developed according to the specified version of the application. Specifying this version allows the platform to disable compatibility code, not required or enable newer features th At are not available to older applications.
O Maxsdkversion: Specifies that the highest version of this program run is important: Please read the document carefully before using these properties.
New Permissions
· Change_wifi_multicast_state: Allows applications to enter the Wi-Fi multicast mode.
· Global_search: Allows the global search system to accurately determine the content provider.
· Install_location_provider: Allow application in LOCATION Manager. Install a LOCATION PROVIDER.
· Read_history_bookmarks: Allows users to read (not write) browsing records and bookmarks
· Write_history_bookmarks: Allows you to apply write (not readable) user's browsing record and bookmarks
· Write_external_storage: Allows programs to write to external memory. The application uses API Level 3 to grant this permission by default (which is visible to the user); An application that uses APIs level4 or higher must explicitly declare this permission.
Android 2.0 API Change Overview:
Bluetooth
· Turn off Bluetooth
· Equipment and service discovery
· Use Rfcomm to connect a pluggable device to send and receive data
· Advertise RFCOMM services and listen for incoming RFCOMM connections
Sync Adapters
· New APIs, synchronous Bridge connection any backend
Account Manager
· Centralized account manager API, secure storage and use of trusted Tokens/passwords
Contacts
· The new communication APIs allow access to data from multiple accounts.
· The new fast communication framework APIs allow developers to create communication tokens in their applications, one click tag to open a new window to show a list of how to contact the current person.
WebView
· Disapproved of the use of classes: Urlintercepthandler, Plugin, Plugindata, Pluginlist, Urlinterceptregistry.
Camera
· Color mode, Scene mode flash mode, focus mode, white balance rotation and other settings for new features.
· When the zoom level changes, the new scaling callback interface is recalled.
Media
· Mediascanner now generates thumbnails for all pictures when they are inserted into Mediastore.
· New thumbnail API: Retrieves thumbnails of required pictures and videos.
Other Framework
· Android. The new system theme in R.style can be more simple to 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 application to set the system wallpaper.
· The new service APIs help apply the accurate processing service lifecycle, and the service will be shut down in the specified low memory state.
o Service.setforeground () is not recommended, and this method is not actually implemented at this time. He was replaced by a new API, Startforeground (), that helps (and requires) associating a ongoing notification with the foreground state.
· Motionevent If the device allows, Motionevent will return multi-touch information. Up to 3 points at a time
· KeyEvent now has a new key to send APIs to help implement action-on-up and long button behavior, a new mechanism to cancel the key (virtual button).
· Windowmanager.layoutparams now has a new constant that allows a window to wake up the screen in a locked or otherwise state, allowing applications such as alarm clocks to implement wake-up devices.
· New Intent APIs Broadcast device docking state, when the device is placed on the desktop or in the parking lot, allowing the program to start special activity.
Key Events executed on key-up
Android 2.0 is able to use virtual keys home, MENU, back, and search instead of physical buttons, in order for users to gain the best user experience in their devices, the Android platform now joins these keys to Key-up, key-down/ Key-up pairing, not just key-down., this helps prevent unexpected button events and lets the consumer press the button area and then drag without generating an event.
This change will only affect your application a bit, if it is the Interception button event, it is best to use Key-down, rather than key-up. As a special case, if your application intercepts the back key, you should make sure that your application handles key events properly.
Android 2.0.1 API Change Overview:
· The new quick contact tag style (quickcontactbadgestyle) * property allows the application of the Quickcontactbadge component to receive the necessary style.
· When the filter is announced inside the manifest, the support action_configuration_changed broadcast is canceled, and if you want to receive the broadcast, this application must be registered Registerreceiver ( Broadcastreceiver, Intentfilter).
Changes in performance:
Bluetooth
Changed the return value of action_request_enable and action_request_discoverable
· action_request_enable If Bluetooth is successfully turned on, return to RESULT_OK now. If the user refuses to turn on the Bluetooth request, it will return to result_canceled.
· Action_request_discoverable returns result_canceled if the user refuses to start the Bluetooth or Bluetooth-enabled discovery.
Communication
The Action_insert Intent returns result_canceled in cases where the contact is not persisted (for example, cut save to an empty operation).
Fix Error:
Resources
The framework can now choose which folders to apply resources based on the API level (DRAWABLE-V4 is the resource for the API Level4 version). Now the version of this feature does not work properly the problem has been fixed.
Contacts
The Action_insert Intent now returns the appropriate kind of URIs when the ' request is ' made using the (now deprecated) Conta CTS 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 additional APIs can provide you with the development of a dynamic desktop:
· New Android.service.wallpaper package.
· New Wallpaperinfo class.
· Upgrade the Wallpapermanager.
Additional instructions, if your application provides live wallpapers functionality, you must remember to add an element to your application manifest. Declare this property android:name= "Android.software.live_wallpaper". Example:
Phone
· The new Signalstrength class provides some information about the current network signal that can be recalled from Onsignalstrengthschanged (Signalstrength).
· The new ondataconnectionstatechanged (int, int) callback.
Views
· The new View Method Isopaque () and Ondrawscrollbars (Canvas).
· The new Remoteviews method AddView (int, remoteviews) and removeallviews (int).
· The new ViewGroup Method Ischildrendrawingorderenabled () and Setchildrendrawingorderenabled (Boolean).
Webkit
· The new WebStorage method operates the Web page data cache.
· The new Geolocationpermissions method obtains the source of geolocation permissions and sets them to WebView.
· The new WebSettings method manages software caching, caching of Web pages, and scaling of screens.
· New webchromeclient methods for video, history, custom view, software cache limits and more??
Android 2.2 API Change Overview:
For Microsoft
Better support for Exchange. Several new features of Android make it more appropriate for the Exchange enterprise environment. Some of the new features are listed below:
Automatic Exchange account number based on user name/password
Support Synchronization for Exchange calendars
Improved security for administrators to enforce security policies across devices
Restore exit Settings-administrators can reset the device to an exit setting so that sensitive data can be erased after the device is stolen or lost
Global Address List Lookup--can help users automatically populate recipients ' mailing addresses based on the list returned on the server side
Device Management APIs. Android 2.2 has improved and added a lot of device management APIs that developers can use in their applications:
Applying data backup api--can back up application data to the cloud. If the user switches to another Android device, he can recover the data from the previous device.
Cloud-to-device Message API. The user/system in the cloud can trigger the action on the device with this enhancement. This feature allows mobile alerts to be sent to the phone and supports bidirectional push Synchronization services.
The application can be installed directly on an external memory device (SD card), and the application can be migrated internally to the SD card, and vice versa.
Network share. Android 2.2 can connect multiple services to the Internet with a hotspot from an Android phone.
Performance. With the new Dalvik JIT compiler, Android 2.2 is 2~5 times faster for CPU-intensive applications than Android 2.1. According to the Linpack benchmark test results, the Froyo Nexus was installed.
One phone can reach 37.5 mflops, and the same phone will 6.5 mflops if you use Android 2.1.
Faster browsing speed. Because browsers now use the Chrome V8 engine, JavaScript code is handled faster than Android 2.1 2~3 times.
Access the device APIs from the browser. It is now possible to access a large number of device APIs directly from the browser, such as accelerators, cameras, voice recognition, translation, and so on, so that Web applications can interact with the device in unprecedented ways. For example, users can upload their photos to the web after they have been photographed, and all of this is done in a browser.
Support Flash 10.1. Froyo supports the latest Flash 10.1
Beta version. Recently, the introduction of the JIT compiler has greatly improved performance, which has been a great help to the operation of Flash applications, as we all know that flash application is a CPU-intensive application.
The Android store. Android 2.2 Developers and store users will benefit from the following new features:
Can search for apps in the Android store, including application data
Update-All applications are updated automatically once the button is clicked
Crash and freeze the report. Android
2.2 is a crash/freeze reporting feature that allows users to report complete details to the application Publisher when the crash occurs.
Browse the store from the PC and download the application directly to the device. The user can select the store application through the PC, and then the application can be sent to the loaded device. To use this feature, the user needs to log in and the device needs to be registered in the Android store-
Music management. Users can convert all non-DRM music on Windows Media or Mac itunes to play on an Android device.