http://code.google.com/p/android-screenshot-library/

What is this?

Android Screenshot Library (ASL) provides means for taking snapshots of phone's screen without the need for signing your application or having privileged (root) access to the Android system. It is intended primarly for taking screenshots used for testing, debugging and diagnostics.

How does it work?

ASL utilizes background native service which performs screen capturing on demand from an application that uses the library. This service has to be started using Android Debug Bridge (ADB), which is an utility program bundled with Android SDK. The service provides screenshot-taking functionality for any application that uses ASL for as long as the phone isn't rebooted, regardless of whether or not it is connected to the PC.

Contents of package

Android Screenshot Library consists of the following files:

  • Java-related files used by client applications:
    • ScreenshotService.java , which contains Android service class communicating with the native service
    • IScreenshotProvider.aidl , which contains definition of interface used by client application
  • asl-native - Native service binary which has to be installed on the phone & ran by ADB
  • Scripts for various shells that install and start the native service:
    • run.sh - /bin/bash script for Unix-like operating systems
    • run.ps1 - PowerShell script recommended for Windows systems
    • run.bat - Batch script for Windows systems
  • demo folder, containing a sample Android application which uses the Android Screenshot Library

Using the API

Refer to DeveloperGuide for details about embedding ASL in your own application and using the programming interface it exposes.

Starting the native service

Refer to UserGuide for details about using the screenshot capturing features of ASL in applications.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android监听网络变化 二
  2. Android(安卓)Studio使用smack进行ejabbe
  3. 利用Android Studio、MAT对Android进行内
  4. android进程和应用程序的生命周期
  5. 初试Kotlin-使用Kotlin运行Android的第一
  6. Android SharedPreferences 存储复杂对象
  7. Android框架学习笔记02AndroidAsycHttp框
  8. Android异步处理系列文章
  9. Android(安卓)密钥保护和 C/S 网络传输安
  10. Android图形选择 - Selector