A simple library to make taking screenshots of your apps a breeze.
With the Marshmallow release and the new permissions model, taking screenshots of your applications has become just slightly more complicated as you need to deal with permissions on the run.
This library does it all for you regardless of the device you're running it on.
Two easy steps:
From the activity you want to take screenshots or the application class initialise the
Selfie's instance and use it throughout your app.
Using default configuration:
Selfie.initWithBuilder(new Selfie.Builder() .fileFormat("yyyy-MM-dd_hh:mm:ss") .path(Environment.getExternalStorageDirectory()) .quality(100));
- fileFormat: Any valid date format according to this.
- path: The place where you want to store your image in the device. Defaults to Environment.getExternalStorageDirectory()
- quality: The quality you want your screenshot to be created. Must be an int between 0 and 100. See [Bitmap Compress]( https://developer.android.com/reference/android/graphics/Bitmap.html#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream))
Taking a screenshot