android截屏学习经历
第一章 android截屏的各种方式综述
1.1 android-screenshot-library方式
1.1.1 What is this?(android-screenshot-library是什么东东?)
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.
Android截图库(ASL)提供了一种截屏方式使您不需要签署您的应用程序或拥有(root)访问权限就可以利用它截取Android系统手机的屏幕快照。主要用于测试,调试和诊断的截屏。个人翻译不是很精确,见谅。
1.1.2 How does it work?(android-screenshot-library如何工作?)
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.
ASL利用后台的本地服务,应用程序使用该库进行画面捕捉。此服务必须使用Android调试桥(ADB),这是一个实用程序与AndroidSDK捆绑在一起。使用ASL服务的任何应用程序只要手机不重新启动,不管是否连接到PC都可以为其提供截屏功能。个人翻译不是很精确,见谅。