Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> Android開發 >> 高級開發 >> Android1.1移植點SDK兼容性提示

Android1.1移植點SDK兼容性提示

編輯:高級開發

有關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).
  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved