2013年11月15日 星期五

Android KitKat Overview (沒寫完)

4.4版出了,看文章順便寫一點摘要

來源:http://developer.android.com/about/versions/kitkat.html

1. Making Android for everyone
為什麼用這個標題我不太懂,簡單說就是比以前更強了 (廢話:每次改版都有這句)。
基本上改善記憶體的使用量,使得heap不會那麼容易爆,也可以適用於記憶體只有512MB的簡易型Android SmartPhone。

提供一個新的API:ActivityManager.isLowRamDevice(),可以讓開發者調整組態以適合記憶體限制。Learn more about optimizing your apps for low-memory devices here.

新增兩個記憶體管理工具:procstats tool, meminfo tool

2. New NFC capabilities through Host Card Emulation
支援安全的NFC 電子錢包交易

3. Printing framework
支援WiFi和雲端列印服務

4. Storage access framework
一個新的 storage access framework,可以讓開發者更簡單的瀏覽與打開文件、影像等檔案。

5. Low-power sensors
支援hardware sensor batching,可以讓sensor更省電,對於一些low-power, long-running的使用情境有幫助。例如:fitness, location tracking, monitoring, and more.

目前sensor batching僅在Nexus 5上面有作用,其他需要等新的機器安裝特定的晶片組

支援兩種新的sensor:Step Detector and Step Counter


Moves and Runtastic Pedometer are using the hardware step-detector to offer long-running, low-power services.

6. SMS provider
沒啥好講的




7. New ways to build beautiful apps

i. 新增 Full-screen Immersive mode, 全螢幕 "浸入"?? 模式
能夠使用螢幕上的每一個pixel,包含螢幕上方的status bar範圍。適合用來開發照片瀏覽、影片播放、地圖、電子書、以及遊戲。

在此模式下system UI將被隱藏。為了讓使用者能夠使用system UI,一個新的手勢控制在此模式下被支援來由上下邊界將system UI 顯露出來。

ii. Transitions framework for animating scenes
改善動畫產生與顯示過程。定義一個新的名詞scenes(場景),包含一組view hierarchies 和 動畫轉換,用在使用者切換theme的時候。基本上是讓轉場動畫愈來越容易被設計。


iii. Translucent system UI styling
半透明的系統UI風格


iv. Enhanced notification access
增強notification listener(通知監聽)功能,現在可以由text, icon, progress, chronometer等物件中提取監聽了。

v. Chromium WebView
BJ4



8. New media capabilities

i. Screen recording
新增螢幕錄影功能能將螢幕內容記錄成一個MP4檔案;提供一組screen recording utility方便製作APP教學、製作影片等。

如果APP內容不願意被別的手機用此功能記錄下來則需要用 SurfaceView.setSecure()來設定。這等於說需要開發者預設的內容又多了一個。

ii. Resolution switching through adaptive playback
播放影片時可以調整影片的解析度,這對播放youtube有點好處。


(....未完)