1. App installation on external storage media   把应用安装在外部存储器(SD卡)

http://androidappdocs.appspot.com/guide/appendix/install-location.html

<manifest xmlns:android="http://schemas.android.com/apk/res/android"android:installLocation="preferExternal"... >

2. Data backup  用户数据备份

http://androidappdocs.appspot.com/guide/topics/data/backup.html

<manifest ... ><application android:label="MyApplication"android:backupAgent="MyBackupAgent"><activity ... >...</activity></application>
</manifest>

3. Graphics 增强了图形处理的功能,特别是3D性能得到大幅度提升

  • New OpenGL ES 2.0 APIs in android.opengl.GLES20.
  • New ETC1, ETC1Util, and ETC1Util.ETC1Texture classes and utility methods for using ETC1 for texture compression.
  • New ImageFormat class.
  • New YUV image format API to enable compression from YUV to JPEG and manipulation of YUV data.

4. Media

  • New APIs in android.media.AudioManager for managing audio focus, transport control, transient loss of audio focus, ducking.
  • New broadcast intent for routing audio to SCO — ACTION_SCO_AUDIO_STATE_CHANGED with extras indicating new state.
  • New APIs in SoundPool to detect completion of sound-loading.
  • New APIs in SoundPool for auto pause and resume.
  • New APIs in MediaRecorder for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.
  • New APIs for adding files to the media database, so that they are automatically scanned. SeeMediaScannerConnection.scanFile and MediaScannerConnection.OnScanCompletedListener.

5. Speech recognition and third-party recognition engines

  • The platform provides new speech-recognition APIs that allow applications to have a richer interaction with the available voice recognizer. For example, the APIs are sufficient to integrate voice recognition deeply into an IME.
  • The platform also provides a RecognitionService base class that lets third-party developers create plug-in recognition engines.
  • New RecognitionListener interface to receive callbacks.
  • New RecognizerIntent extras that let a requester app specify details as preferred language, minimum length in milliseconds, and so on.

6. Camera and camcorder

  • Changes to camera preview API to improve efficieny of preview pipeline.
  • New display orientation for camera (it can now work in portrait orientation).
  • New APIs in android.hardware.Camera for managing zoom level.
  • New APIs android.hardware.Camera.Parameters for querying and setting device camera settings such as focal length, exposure, zoom level, view angle, and others.
  • New thumbnail utility for video and image thumbnails.
  • New CamcorderProfile and CamcorderProfile classes enable apps to determine device hardware camera capablities.
  • New support in android.media.ExifInterface for retrieving GPS and focal length.
7. Device policy manager

New device policy management APIs allow developers to write "device administrator" applications that can control security features of the device, such as the minimum password strength, data wipe, and so on. Users can select the administrators that are enabled on their devices. For more information, see the android.app.admin classees or the example application code inDeviceAdminSample.java.

8. UI Framework
  • New UI modes "car mode" and "night mode" and UiModeManager let applications adjust their application UI for specific user modes.
  • New ScaleGestureDetector that lets Views detect and handle transformation gestures that involve more than one pointer (multitouch) using the supplied MotionEvents.
  • Improvements in the way that multitouch events are reported in MotionEvent objects.
  • The layout attribute fill_parent is renamed to match_parent. This affects both XML and Java code (seeViewGroup.LayoutParams). Note that the platform will continue to honor uses of fill_parent in legacy applications.
  • New layout attributes tabStripEnabled, tabStripRight, and tabStripLeft let developers customize the bottom strip of TabWidgets.
  • Better support for managed dialogs in Activity.
9. Accounts and sync
  • New method AddPeriodicSync() lets you schedule a periodic sync with a specific account, authority, and extras at the given frequency.
10. New manifest elements and attributes
  • For specifying the application's preferred install location (see App Installation on External Storage Media, above):

    • New android:installLocation attribute of the <manifest> element. Specifies the default install location defined by an application.
  • For managing user data backup (see Backup manager, above, for more information):
    • New android:backupAgent attribute of the <application> element. Specifies the component name of the BackupAgent subclass provided by the application to handle backup/restore operations, if any.
    • New android:restoreAnyVersion attribute of the <application> element. Boolean value that indicates whether the application is prepared to attempt a restore of any backed-up dataset, even if the backup is apparently from a newer version of the application than is currently installed on the device.
  • For managing the platform's JIT compiler:
    • New android:vmSafeMode attribute of the <application> element. Boolean value that specifies whether to disable JIT compiler optimizations when running the application.
11. Permissions
  • android.permission.BIND_DEVICE_ADMIN — Any device administration broadcast receiver must require this permission, to ensure that only the system can interact with it.
  • android.permission.KILL_BACKGROUND_PROCESSES — Allows an application to callkillBackgroundProcesses(String).
  • android.permission.BIND_WALLPAPER — Any WallpaperService must require this permission, to ensure that only the system can interact with it.
  • android.permission.SET_TIME — Allows an application to set the system time.

转载于:https://www.cnblogs.com/game-over/archive/2010/05/22/1741411.html

Android2.2 新特性相关推荐

  1. jQuery Mobile 1.1八大新特性介绍

    随着HTML 5时代的来临,移动开发开始进入了一个新的时代,现在只需要懂得HTML5,配合一定的开发框架,就可以开发出十分漂亮的HTML5的移动应用.在众多的 移动HTML5开发框架中,比较著名的是j ...

  2. Android8.0、9.0、10.0、11.0的新特性兼容适配代码修改

    <Android Studio开发实战 从零基础到App上线(第2版)>在书后面的附录中给出了Android8和Android9的主要特性说明,附录表格如下图所示: 不过附录表格只涵盖了常 ...

  3. android各个版本的新特性

    首先看看最新版本Android 11 : https://www.zhihu.com/question/420186152 4.0 Ice Cream Sandwich(冰激凌三明治):2011年10 ...

  4. Android9.0新特性

    转自:https://blog.csdn.net/hejjunlin/article/details/81489690 2018年8月7日-凌晨1点,谷歌发布了Android 9.0操作系统,它的名字 ...

  5. Android5.0,6.0,7.0,8.0新特性整理

    背景 Android5.0(Android Lollipop)是谷歌公司2014年10月发布的全新安卓系统,至今已经两年多.然而由于国产手机对安卓ROM的深度定制或修改,以及手机厂商.芯片制造商.运营 ...

  6. Android5.0,6.0,7.0新特性整理

    背景 Android5.0(Android Lollipop)是谷歌公司2014年10月发布的全新安卓系统,至今已经两年多.然而由于国产手机对安卓ROM的深度定制或修改,以及手机厂商.芯片制造商.运营 ...

  7. Android5.0 6.0 7.0新特性

    原文链接:http://blog.csdn.net/haovip123/article/details/54618642 背景 Android5.0(Android Lollipop)是谷歌公司201 ...

  8. Android 8.0新特性

    非常抱歉,我个人写博客,一般懒得去排版,矫正,所以,有点乱.我也根据编辑文字的经验,尽可能有条理,方便阅读和理解结构内容. 最近中国的IT的创业应该到了一定的阶段了,互联网+的概念,走的差不多了.在这 ...

  9. Android 5.0,6.0,7.0,8.0, 9.0新特性

    Android5.0 21 1.Android Runtime(ART) 大多数 Android 应用无需任何更改就可以在 ART 下工作.不过,部分适合 Dalvik 的技术并不适用于 ART.如需 ...

  10. Android 5.0,6.0,7.0,8.0新特性整理

    目录 Android 5.0行为变更 Android 6.0行为变更 Android 7.0行为变更 Android 8.0二十大新特性,这些地方像极了iOS? Android 8.0 新变化汇总 A ...

最新文章

  1. python PyQt5 QtWidgets.QWidget.setLayout()(将布局中的小部件重新父级化,以将窗口作为父级)
  2. python怎么处理文字_使用python进行简单的文本处理
  3. 信号调制疑问_DSM 调制器simulink仿真分析
  4. 控件设置相对位置_惊人的Divi转换控件!
  5. 安卓手机状态栏 定位服务自动关闭_手机电池为什么会越用越不耐用
  6. STL(八)——向量vector
  7. Centos(Linux)升级git最新版本
  8. 谁的世界,哪一个梦想?
  9. C++ {}作用域 return
  10. 802.11a/b/g/n/ac速率表
  11. Spring @Validate 报 :No validator could be found for type 异常解決
  12. Python3.X 爬虫实战(并发爬取)
  13. Centos7修改时区、时间
  14. 怎么把腾讯视频的qlv文件转成mp3格式 【已解决】
  15. vs2012创建的数据库中的表怎么都不能保存的
  16. Centos7制作Openstack下win7 镜像
  17. 关于以太坊公开的4个测试网络的区别:
  18. 微信人工客服转服务电话号码呢?
  19. HTML控制ppt,挥手就能控制PPT幻灯片的方法
  20. elementui的el-select、el-date-picker的宽度比el-input宽度短

热门文章

  1. 阶段3 3.SpringMVC·_04.SpringMVC返回值类型及响应数据类型_6 响应json数据之过滤静态资源...
  2. HTML5---2.语义化标签的兼容性问题以及解决方案
  3. python 科学计算思维导图
  4. amazeui学习笔记--js插件(UI增强4)--下拉组件Dropdown
  5. 我的大学生活-4-21-吕家尧
  6. Smarty3的性能问题
  7. JasperReports学习(1)
  8. 找到的The LEGEND of the DRAGON的新下载地址
  9. 四、数组定义/冒泡排序的理论/什么是方法
  10. 2017.4找工作面试记录-第三周(2)--金蝶