Screenshot-observer
armcha
34
Visit GitHub Repo
Screenshots

Screenshot-observer

This library will help you to receive android screenshot events.

The current minSDK version is API level 15.

Download 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 method

public class ScreenShotService extends ScreenshotObserverService {

    @Override
    protected void onScreenShotTaken(String path, String fileName) {
        
    }
}

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.

License

  Screenshot-observer library for Android
  Copyright (c) 2017 Arman Chatikyan (https://github.com/armcha/Screenshot-observer).

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

Become Pro in Android by watching videos

OUR LEARNERS WORK AT