android API 版本升级差异归纳

来源:互联网 发布:kali linux卸载输入法 编辑:程序博客网 时间:2024/05/29 14:29

一.============ 2.1API 新特性 ===================

1.Revisions:

Dependencies:

Requires SDK Tools r6 or higher.

Tools:
  • Adds support for library projects in the Ant build system.
  • Adds improved layout rendering in ADT’s visual layout editor
2.Framework API Changes

动态壁纸.

The following additions provide APIs for you to develop animated wallpapers:

    • New android.service.wallpaper package.
    • New WallpaperInfo class.
    • Updated WallpaperManager.  

Add <uses-feature android:name="android.software.live_wallpaper" /> to appliction manifest.xml .


Telephony

  • New SignalStrength class provides information about the device's current network signal. This can be acquired from the new onSignalStrengthsChanged(SignalStrength) callback.
  • New onDataConnectionStateChanged(int, int) callback. 

Views

  • New View methods isOpaque() and onDrawScrollBars(Canvas).
  • New RemoteViews methods addView(int, RemoteViews) and removeAllViews(int).
  • New ViewGroup methods isChildrenDrawingOrderEnabled() and setChildrenDrawingOrderEnabled(boolean).  

WebKit

  • New WebStorage methods to manipulate web storage databases.
  • New GeolocationPermissions methods to get Geolocation permissions from, and set them on the WebView.
  • New WebSettings methods to manage settings for app cache, web storage, and zooming based on screen density.
  • New WebChromeClient methods for handling video, browsing history, custom Views, app cache limits, and more

二: ================ android 2.2 新特性 ============================

1.软件安装位置添加属性 AUTO

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.control"
      android:versionCode="1"
      android:versionName="1.0"
      android:installLocation=["auto"|"interalOnly"|"preferExternal" ]>//interalOnly为安装到内存,preferExternal为安装到SD卡.fi


2.match_parent 属性取代  fill_parent.


3.新增程序数据备份至云端功能. extends BackupAgent