Screenshot-observer

Additional

Language
Java
Version
N/A
Created
Jan 17, 2017
Updated
Jan 24, 2017 (Retired)
Owner
Arman (armcha)
Contributor
Arman (armcha)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

Screenshot-observer

This library will help you to receive android screenshot events.

The current minSDK version is API level 15.

Download sample [apk][1]

[1]: https://github.com/armcha/Screenshot-observer/raw/master/screens/Screenshot-observer-sample.apk

##Download

Gradle:

compile 'com.github.armcha:Screenshot-observer:1.1.0'

Setup and usage

Step 1. Create service and extend it from

ScreenshotObserverService and override onScreenShotTaken methodpublicclassScreenShotServiceextendsScreenshotObserverService { @OverrideprotectedvoidonScreenShotTaken(Stringpath, StringfileName) { } }


Step 2. Start your service from Activity startService(new Intent(this, ScreenShotService.class));

###Note: For API 23 and higher you should grant READ_EXTERNAL_STORAGE permission and there is still some issue while editing the screenshot file

Contact

Pull requests are more than welcome. Please fell free to contact me if there is any problem when using the library.