I record my android device screen by using MediaProjectionManager (since Lollipop). But i want to display this record on the same screen on a new uppermost Surface. This surface shouldn't be touched by the recording MediaProjectionManager (records a composite of all visible surfaces). Is there any system SurfaceView that would not be recognized by MediaProjectionManager to stream it onto it?
Or in other words: How can i prevent recording certain SurfaceViews, make them invisible for the recorder? Are there any flags to set?
For recording i use this code by MattSnider: http://mattsnider.com/video-recording-with-mediaprojectionmanager/