why c + + and java mix in android?

Hello, everyone, I the andriod have java project using the PowerVR Insider, SDK, I hope to get advice, thank you。


We use C++ in the SDK as it is the most commonly used language when writing graphics applications for our graphics cores and it is easier to write high performance code with than Java. Additionally, C++ is much more portable than Java for mobile OSs.

It's not currently possible on Android to write an entirely native C++ application on Android (many OS features can only be accessed through Java-based APIs) . A Java wrapper layer is required to use C++ code on Android.



Joe2012-04-16 10:43:30