How To Capture In-App Screenshots In Android

A look at getDrawingCache and PixelCopy API implementations

Siva Ganesh Kantamani
Better Programming
Published in
3 min readAug 16, 2021

--

Smartphone
Photo by Mika Baumeister on Unsplash

In this article, we’re going to learn about a widely used approach to take screenshot and address its real-time problems. Then explore a simple solution to take a view-based screenshot using canvas.

Introduction

--

--