作为最终版本的Android 1.0 SDK可能未来不会有太大的API变化,如何将自己现有的0.9 SDK移植到Android 1.0上呢?下面是总结出主要的API改变。本次变化我们发现并没有传说中的Bluetooth API加入,目前的蓝牙功能仅仅可连接蓝牙耳机,不具备完整的蓝牙栈。
Content provider 内容提供
Settings.System包含各种新的Wi-Fi状态设置存储 (Settings.System includes various new settings for storing wi-fi states. )
Device hardware 设备硬件
Camera包含了一个新的接口名为Camera.ShutterCallback来接收提示信息从拍照后 (Camera includes a new inteface Camera.ShutterCallback for receiving notification that the shutter closed after taking a picture. ) 一些新的字段添加到SensorManager.(Several new fields were added in SensorManager. )
Maps 地图类
ItemizedOverlay类添加新的方法到overlays管理类 (ItemizedOverlay adds new methods for managing overlays.) 类MyLocationOverlay天就爱一个新方法决定是否显示MapView和接收感应提示消息当发生改变时(Class MyLocationOverlay adds new methods to determine whether compass is displayed on the MapView and to receive notification of sensor accuracy change. )
Media 媒体类
新方法载入和解除音乐效果在AudioManager类(New methods for loading and unloading sound effects in AudioManager.) 类MediaMetadataRetriever不支持这个发行版本(Class MediaMetadataRetriever is not supported in this release. ) 方法Android.media.MediaPlayer.getFrameAt() 不支持在这个发型版本中,Android开发网友情提示(Method Android.media.MediaPlayer.getFrameAt() is not supported in this release. )
Network 网络
Android.net.wifi包含一些新类保持wi-fi无线唤醒和识别从配对加密的WPA,一些改变的字段和方法在其它类中(Android.net.wifi includes new classes for keeping the wi-fi radio awake and recognizing pairwise cyphers for WPA. Several changes to fields and methods in other classes. ) org.apache.http.impl Package包含在这个平台上(org.apache.http.impl included in the platform. )
Package manager 包管理
删除用户数据和缓存的方法从PackageManger中移除了(Methods for deleting user data and cache were removed from PackageManager. )
Text input 文本输入
TextKeyListener新增一个release()方法(TextKeyListener adds a release() method. )
Test 测试
New classes and interfaces to Android.test, for setting up a test environment including instrumentation, unit tests, and test suites. Adds junit.runner package Adds Android.test.mock package with utility classes for providing stubs or mocks of various Android framework building blocks. Adds Android.test.suitebuilder package with utility classes fro supporting test runner classes.
Views 视图
添加一些新的xml属性从视图对象(Adds several new XML attributes for View objects). 添加音效支持(Adds support for sound effects.) 你现在能监听改变从确切的感应中(You can now listen for changes in the accuracy of sensors. ) WebView新增一个新的传输对象移动带webview交叉进程集中(WebView adds a new transport object for moving a WebView across process boundaries. ) WebView添加一个管理滚动条的方法(WebView adds methods for managing scrollbar overlays.)
XML xml解析
org.xmlpull.v1在当前平台有效(org.xmlpull.v1 available in the platform.)
Widgets (小固件)
verifyDrawable(Drawable) 方法探测访问权限从公共改为保护,其他一些小幅改动(verifyDrawable(Drawable) scope changed from public to protected.Other minor widget changes)
|
|
|
|
|
|
|
|
|