Android record screen but only specific 'layers'/views
I use the MediaProjection API to record a screen in Android. Now I want to know whether it's possible to create a let's say "hidden" view which you actually can see but not in the video thus the view shouldn't be recorded. Furthermore is it possible to disable the recording of notifications or even the notification-center? So is it possible to configure like a 'surface-layer-system', thus you can decide which layer you want to record? Preventing a layer from appearing in recordings can be done by setting the "secure" flag . See for example the "multi-surface test" in Grafika , which sets the