简体   繁体   English

如何在Android 4.0+上截图

[英]How to take a screenshot on android 4.0+

I heard that Android 4.0+ support user to capture screenshot without root. 我听说Android 4.0+支持用户无需root即可捕获屏幕截图。 So, I think that It must provide some APIs that help developers build this feature to their app, Right? 因此,我认为它必须提供一些API,以帮助开发人员为其应用程序构建此功能,对吗? If it have, Could you please tell me what they are? 如果可以的话,您能告诉我它们是什么吗?

There is no API for an app to take a screenshot. 应用程序没有API可以截屏。 The screenshot is placed into a standard folder, but some devices use different folders, and there is no API to get the correct folder name. 屏幕截图放置在标准文件夹中,但是某些设备使用不同的文件夹,并且没有API可以获取正确的文件夹名称。 Users can take screenshots by pressing volume-down and power on most phones. 用户可以通过调低音量并打开大多数手机的电源来截取屏幕截图。 On Some devices it is done by power+home, on some by hand swipe. 在某些设备上,这是通过电源+家用完成的,而在某些设备上,是通过手动滑动来完成的。 There is no API to tell how to take a screenshot on the current device. 没有API可以告诉您如何在当前设备上截屏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM