This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
# AndroidScreenShot_SysApi | ||
这是一个例子,以非常优雅的方案实现屏幕截图。 实现原理为 利用android 5.0 之后的录屏API获取一帧画面,来实现截屏。 | ||
|
||
## Spacials | ||
## Special Features | ||
|
||
1. 打破老旧的截屏方案,不能截状态栏的问题。 | ||
|
||
2. 截图其他app. | ||
|
||
## Usage | ||
|
||
**使用Shotter** | ||
参考onClickReqPermission() | ||
|
||
请查阅代码 onClickReqPermission() | ||
|
||
**使用ScreenShotActivity** | ||
参考onClickShot(),该方法可以截图其他app | ||
|
||
请查阅代码 onClickShot(),该方法可以截图其他app | ||
|
||
|
||
3. 更多拓展: | ||
### 更多拓展: | ||
|
||
> 因为ScreenShotActivity是一个透明并隐藏的activity,玩法有很多: | ||
3.1截图桌面; | ||
a. 截图桌面; | ||
|
||
3.2对其他app进行截图:你自己试着调整shotter的delay时间为3秒,然后start截图,再切换到其他app里,等toast截图成功。 | ||
b. 对其他app进行截图:你自己试着调整shotter的delay时间为3秒,然后start截图,再切换到其他app里,等toast截图成功。 |