简体   繁体   中英

How can I obtain a reference to the native window of the camera application in Android?

I need a reference to a ANativeWindow structure to be fed to a image processing library based on OpenGL. I don't want to make a native activity or an additional application.
I also want to know if I can use, and how to obtain from native code, the window specific to the camera application, mentioning that I don't want the display to change during processing or the processing of the OpenGL based library to interfere with the camera application.

How can I obtain a reference to the native window of the camera application in Android?

You don't. That window is in another process, not yours.

I also want to know if I can use, and how to obtain from native code, the window specific to the camera application

This is not possible. Again, that window is in another process, not yours.

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