by mtsahakis

One Activity sample app of using Android Lollipop MediaProjection API to capture device screenshots

134 Stars 46 Forks Last release: Not found Other 42 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Android Lollipop 5.0 MediaProjectionManager Demo

This is a sample app that demonstrates how to capture screenshots based on the MediaProjection API. More on the API can be found in Clone and import the project in Android Studio. No special dependencies and extra libraries required. Note that in order to run the code you need to create a device running Lollipop and above.


As of this writting I am getting a black screen when running the app in an emulator running Android 6.0 and lower versions. The screen captures are working successfully in emulators with Android 6.0.1 and later versions (see issue 5 for additional info). Also, Android 5.1 has a bug when we check "Do not show again" box, please refer to

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.