Search code examples
androidandroid-mediaprojection

How to take a screenshot using MediaProjection API?


I am new to MediaProjection API and I have very limited knowledge in computer graphics. I need help with as in how to use this particular API. What should I study to learn to use this API. Google documentation gives little information. And everywhere I look in the internet, everyone is making a screen recorder with it but no one has posted a code sample for taking screenshots using this API.


Solution

  • I looked into the book as mentioned by @Commonsware in the comment and it actually helped me