- 浏览: 1504001 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (419)
- XMPP (19)
- Android (180)
- Java (59)
- Network (4)
- HTML5 (13)
- Eclipse (9)
- SCM (23)
- C/C++ (4)
- UML (4)
- Libjingle (15)
- Tools&Softwares (29)
- Linphone (5)
- Linux&UNIX (6)
- Windows (18)
- Google (10)
- MISC (3)
- SIP (6)
- SQLite (5)
- Security (4)
- Opensource (29)
- Online (2)
- 文章 (3)
- MemoryLeak (10)
- Decompile (5)
- Ruby (1)
- Image (1)
- Bat (4)
- TTS&ASR (28)
- Multimedia (1)
- iOS (20)
- Asciiflow - ASCII Flow Diagram Tool.htm (1)
- Networking (1)
- DLNA&UPnP (2)
- Chrome (2)
- CI (1)
- SmartHome (0)
- CloudComputing (1)
- NodeJS (3)
- MachineLearning (2)
最新评论
-
bzhao:
点赞123!
Windows的adb shell中使用vi不乱码方法及AdbPutty -
wahahachuang8:
我觉得这种东西自己开发太麻烦了,就别自己捣鼓了,找个第三方,方 ...
HTML5 WebSocket 技术介绍 -
obehavior:
view.setOnTouchListenerview是什么
[转]android 一直在最前面的浮动窗口效果 -
wutenghua:
[转]android 一直在最前面的浮动窗口效果 -
zee3.lin:
Sorry~~
When I build "call ...
Step by Step about How to Build libjingle 0.4
android-screenshot-library - Library for taking screenshots on Android platform.
- 博客分类:
- Android
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.
评论
兄弟,你修复了asl里面具体的什么bug?现在手机截屏出来都是只有一半或者1/10,还有些手机截屏出来是混乱的,你遇到这个问题了吗
你看能否将ddmlib用C++/C#语言实现呢?
不好意思,我还未来得及试。不过,在Android ICS,已经原生支持抓取screenshot了,所以,未来这个库其实用不到了。
发表评论
-
[Android] 为Android安装BusyBox —— 完整的bash shell
2013-12-27 10:19 1489http://www.cnblogs.com/xiaowen ... -
Windows的adb shell中使用vi不乱码方法及AdbPutty
2013-12-27 10:17 7572http://www.veryhuo.com/down/ht ... -
AppMobi推出新XDK,可创建测试PhoneGap项目
2012-09-03 13:39 2636AppMobi今天发布了一个新的工具PhoneGap Mobi ... -
Sencha
2012-09-03 12:59 1185http://www.sencha.com/ Se ... -
jQuery Mobile学习
2012-09-01 12:33 1691使用Jquery Mobile设计Android通讯录 ... -
BackBone
2012-09-01 12:34 1259Backbone.js 是一种重量级javascript M ... -
jQTouch
2012-08-30 15:57 984A Zepto/jQuery plugin for mobil ... -
SwiFTP
2012-08-30 15:43 1305SwiFTP is a FTP server that run ... -
kWS
2012-08-30 15:41 1198kWS is a lightweight and fast W ... -
jQuery Mobile
2012-08-30 15:07 1027http://jquerymobile.com/ -
PhoneGap
2012-08-30 15:07 1044http://phonegap.com/ -
Android Button background image pressed/highlighted and disabled states without
2012-08-06 12:49 1678http://shikii.net/blog/android- ... -
[AndriodTips]Image, saved to sdcard, doesn't appear in Android's Gallery app
2012-08-04 16:15 1158http://stackoverflow.com/questi ... -
Voice detection for Android
2012-07-23 11:39 2345Here it is, my fist JAVA applic ... -
[AndroidTip]local reference table overflow (max=512)的错误解决
2012-07-22 22:56 6046JNI层coding经常会遇到ReferenceTable o ... -
[AndroidTip]EditText如何初始状态不获得焦点?
2012-07-22 15:35 1226最简单的办法是在EditText前面放置一个看不到的Linea ... -
[AndroidTip]android textview滚动条
2012-07-21 14:29 1297本来是想做一个显示文字信息的,当文字很多时View的高度不能超 ... -
Google公布Android 4.1完整功能
2012-07-16 09:48 3184http://www.android.com/about/je ... -
Android开发:使用AudioTrack播放PCM音频数据【附源码】
2012-07-13 15:20 20862http://www.linuxidc.com/Linux/2 ... -
Android上的行车记录仪
2012-07-11 22:31 2008MyCar Recorder DailyRoads
相关推荐
【Android-ScreenShot-Library】是一个专为Android设备设计的库,无需root权限即可实现屏幕截图功能。这个库的核心原理是通过访问framebuffer(帧缓冲区)来获取屏幕的图像数据,然后将其转换为可保存的图片格式。...
Android Screenshot library On-demand screenshots during Android integration tests This framework uses ddmlib to capture screenshots from your device, and addresses some issues around taking ...
adb(Android Debug Bridge)是Android开发中的一个关键工具,它是一个命令行实用程序,允许开发者与Android设备进行通信。在“adb-platform-tools_r34.0.4-windows.zip”这个压缩包中,包含了适用于Windows平台的...
官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装
官方版本,亲测可用
离线安装包,亲测可用
**Android ADB (Android Debug Bridge) 是一个强大的命令行工具,它是Android开发和调试不可或缺的一部分。在Windows环境下,ADB与Platform-Tools包一起提供,帮助开发者进行设备通信、安装应用、数据备份、日志收集...
官方版本,亲测可用
cordova-screenshot cordova截屏插件 document.addEventListener("deviceready", init, false); function init() { document.querySelector("#share").addEventListener("touchend", function() { navigator....
文件放服务器下载,请务必到电脑端资源详情查看然后下载,gnome-shell-extension-screenshot-window-sizer-3.28.1-14.el7.noarch.rpm
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用