You cannot access the Java UI from the NDK code. NDK got the basic functionality to draw material on the screen, suitable for writing games, but what is it.
If you want to use WebView, you will have to embed it in the Java user interface and then access it through the JNI. I can no longer comment on further details about what you are trying to do, but the usual use cases:
the game wants to launch the URL: the game is invoked in Java through the JNI, and the Java side launches it as an intent.
the game wants to view some HTML in the user interface: the game is called in Java via the JNI, and on the Java side, Activity is launched with a web interface.
There are also many ways to cheat, for example. having user activity without a title, and a transparent background with a WebView on it appears on top of your NativeActivity. It all depends on what you want to do, but it will all be related to JNI.
source share