來源1
來源2
節錄一小段:
Changes in the Android 2.3.3 Gingerbread source will allow applications to take screenshots without rooting your phone. We've always been able to take screenshots using the SDK and the ddms utility (which you can see above), and some third-party manufacturer skins have enabled it -- both accidentally and on purpose. But with Android 2.3.3 it appears that applications will be able to do it without rooting on stock Android. This is because of some changes in the way the SurfaceFlinger service handles what it captures from the framebuffer.
2.3.3改變了source,允許程式在不用Root的情形下就可以截圖,我們總是用SDK和ddms來截圖,還有第三方的程式。
但2.3.3出現了一個在原生Android不需要Root就可以截圖的程式,這是因為SurfaceFlinger服務做了一些改變。
------
所以你的Nexus S或是Nexus One已經升級的話就試試看,不曉得是不是要另外裝還是內建這功能了...,我手上沒這兩支,所以只是轉貼。
所以native的程式可以直接 call SurfaceFlinger api 取得 screen snapshot.
至於java的部份, 就不確定是否有增加對應的java api跟jni
內文搜尋
X




























































































