android-screenshot-library - Library for taking screenshots on Android platform.

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值