
To find out how it works internally, check out the screenshotty-lib module. and their role in screen rendering.Įven though this might not sound like a task you’d commonly be faced with at work, reading the article still might be beneficial, because having knowledge of the APIs we’re going to discuss here might come in handy for developing other features and will deepen your understanding of the Android UI framework.įor those who’d like to skip reading and jump right into the code, at Bolt we developed and open-sourced a library that combines all the discussed solutions and provides an easy-to-use API abstracted from the Android framework and the complexities of the underlying mechanisms: To explain the pros and cons of every approach, we’ll also briefly touch on various UI framework components such as WindowManager, Window, Surface, etc. In this article, we’re going to expand on different ways to programmatically capture a screenshot of your Android app. Building a robust screen capturing mechanisms has its pitfalls, and we want to share results and the knowledge we gained with the community. Upon tap, it gathers device logs, captures screen image, prompts for a description and sends everything directly to special channel with support representatives. To make this process as simple and efficient as possible, we’ve added a special button to the version of the Android app used by employees internally.


At Bolt, we encourage employees to use the products we’re building, to provide feedback that helps us continuously improve.
