share a given window on android

C++
xwininfo  # Get the id of the window you want to share
x11vnc -rfbauth .vnc/passwd -id {replace-by-window-id}
Source

Also in C++: