Skip to content

BruceWind/AndroidScreenShot_SysApi

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AndroidScreenShot_SysApi

非常优雅的方案实现屏幕截图,利用android 5.0 之后的录屏API获取一帧画面,来实现截屏。

特性

  1. 打破老旧的截屏方案,不能截状态栏的问题。

  2. 截图其他app.

使用Shotter

参考onClickReqPermission()

使用ScreenShotActivity

参考onClickShot(),该方法可以截图其他app
  1. 更多拓展:

    因为ScreenShotActivity是一个透明并隐藏的activity,玩法有很多:

    3.1截图桌面;

    3.2对其他app进行截图:你自己试着调整shotter的delay时间为3秒,然后start截图,再切换到其他app里,等toast截图成功。

About

To take screenshots easily with Android 5.0 API.{优雅地实现屏幕截图,用android 5.0之后的录屏API实现}

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages