有關2009年2月版最新的
android 1.1 SDK移植相關注意點,需要大家了解的有:
1.ADT插件使用0.8.0版本即可,目前沒有更高的版本無需更新。
2.程序發布的兼容性,可以查看android 1.1 SDK兼容性問題一文有關的改進。
3.詳細的API改進查看
- 添加系統測試API,不需要真實的調用最終APIAdds annotations for test systems, no actual (non-test) API changes.
- 加入允許當前程序獲取自己進程UID方法Adds a method to allow a process to easily determine its UID.
- 加入布局滾動功能Adds support for marquee in layouts.
- 加入新的view計算間距方法,比如編寫自己的VIEw子類化這裡android123提醒大家可以自繪控件時注意使用Adds new methods for determining padding in views. Useful if you are writing your own subclasses of VIEw.
- 添加新權限允許程序接收sms和wap push信息的廣播Adds new permissions that allow an application to broadcast an SMS or WAP Push message.
- API cleanup: removes protected constructor from SDK-bound system images.
API改變詳細描述如下(API Change Details)
Module or Feature |
Change Description |
Annotations for test systems
Added class LargeTest to package android.test.suitebuilder.annotation
Added class MediumTest to package android.test.suitebuilder.annotation
Added class SmallTest to package android.test.suitebuilder.annotation
Allow a process to easily know its UID.
Added public method myUid() to class android.os.Process
Padding in vIEws
Added public method getBottomPaddingOffset() to class android.view.VIEw.
Added public method getLeFTPaddingOffset() to class android.view.VIEw.
Added public method getRightPaddingOffset() to class android.view.VIEw.
Added public method getTopPaddingOffset() to class android.view.VIEw.
Added public method isPaddingOffsetRequired() to class android.view.VIEw.
Marquee support
Added public method setMarqueeRepeatLimit(int) to class TextVIEw
Added public fIEld android.R.attr.marqueeRepeatLimit
New permissions
Added public fIEld android.Manifest.permission.BROADCAST_SMS
Added public fIEld android.Manifest.permission.BROADCAST_WAP_PUSH
API cleanup
Removed protected constructor Java.Net.
ServerSocket.ServerSocket(Java.Net.SocketImpl).