Current location - Quotes Website - Signature design - Why should android use jni?
Why should android use jni?
Jni of android can be developed with c/c++, and its running efficiency is much higher than that of java, especially when doing some image algorithms or game logic, using jni will greatly improve the efficiency. For example, a game uses opengl to load a 3d model composed of 1000 polygons. jni is several times faster than java, which ensures that the fps of the game will not be too low.

Another advantage is memory management. Java's memory management is virtual machine management, and C++ is programmer management, so the utilization rate is much better.

And so on. Other advantages.

Since there are so many advantages, why not develop an android program with pure C? Because the UI framework of android uses java, it is still used to develop UI.