abalta
abalta

Reputation: 1257

Record a layout with Android Api

I have successfully record a screen with MediaProjection api, but I want to record a specific layout/view in my activity not whole screen.

I followed these tutorials;

https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/media/projection/MediaProjectionDemo.java

https://github.com/mtsahakis/MediaProjectionDemo

Upvotes: 1

Views: 880

Answers (1)

saikrishna279
saikrishna279

Reputation: 145

You can't record only a particular layout. Media Projection API directly gets the frame buffers from the GPU itself (which is the output from the surface flinger) which is everything that you see on the screen (including status bar, navigation bar and all overlays and stuff including the app you are trying to record.

Upvotes: 1

Related Questions