I have no knowledge about android development, and don’t know how to add “unitySurfaceView” into R.id.
Then I watch android development tutorial and do the way you found.
It’s working so nice. Thank you
Now I post the more detail answer for others facing the same problem.
Step 1: Just add the ids.xml into res/values/
Step 2: Copy the following content and save it.