简体   繁体   中英

Application screen recording in Android

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)?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM