简体   繁体   中英

Can I make the Display Object in Android by using surface object?

I want to extract the specific activity's display object for making second screen that is for mirroring. But I can't find information and solve this problem. How can I do this? Could you teach me about this?

Thanks.

You can use VirtualDisplay in combination with Presentation Object. In android AOSP, in cts/tests/tests/display/.. you can find some implementation example as well.

The api for creating VirtualDisplay is:

createVirtualDisplay()

Hope this helps.

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