As a reference, one way to capture the screen (and not just your app activity) is to capture the framebuffer (device /dev/graphics/fb0). To do this you must either have root privileges or your app must be an app with signature permissions ("A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared the permission
Cara menggunakan Sekat dalam Tampilan layar terpisah ⓐ Ubah tata letak. ⓑ Ubah posisi (2 layar saja). ⓒ Simpan tata letak saat ini pada Panel edge. Dua aplikasi yang sama dapat dibuka pada jendela yang berbeda (Multi-instance). Aplikasi yang mendukung Multi-instance adalah Internet, File Saya, Samsung Notes, dan MS Office. Cara Screenshot Samsung Galaxy A51 dengan Tombol Fisik. Kemudian tekan tombol fisik Volume – dan Power secara bersamaan selama beberapa detik. Apabila suara Shutter berbunyi dan layar berkedip, maka screenshot berhasil diambil. Nantinya hasil gambar akan muncul pada menu notifikasi atau kamu bisa langsung mengunjungi aplikasi Galeri. .