0

I want to record my own application's window. The only relevant API I see is media projection. I would use it but it requires user consent because it enables screen capturing of other applications. I'm interested only in my own application screen.

Is there a way to record my application screen without media projection API (and without user consent)?

rlib
  • 7,444
  • 3
  • 32
  • 40

1 Answers1

0

I don't believe it's possible without requiring user consent. Android treats the screen of your app as part of the overall device screen, and the MediaProjection API is the only way to capture the screen of your app.

The MediaProjection API requires user consent as a security measure to prevent malicious apps from capturing the screen of other apps without the user's knowledge.

Andrew
  • 26
  • 4
  • Don't you think it could be a solution: https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot-on-android Just take screenshot 23 times per second and compress? – rlib Dec 05 '22 at 01:03