画面のスナップショットを取ることができます。
| droid.snapshotToFile(fname, format) | 画面のスナップショットを取る |
format には、"png" か "jpeg"を指定可能。
ver.1.13で実装。
<h2>Snapshot</h2>
<div class="buttons">
<button onclick="showSnapshot()">Snapshot!!</button>
</div>
<script>
function showSnapshot() {
var path = "file:/sdcard/test.png";
droid.snapshotToFile(path, "png");
droid.startIntent(path);
}
</script>