Android: Java, C or C++?

后端 未结 6 1936
执念已碎
执念已碎 2021-02-01 15:38

I wrote some simple apps in Android using Java.
But later I found this:

It provides headers and libraries that allow you to build activities, hand

6条回答
  •  梦谈多话
    2021-02-01 15:53

    Java always allows you to call "native code" components. However, you want to avoid them if possible because they can introduce subtle bugs and platform dependencies into your code.

    I don't believe you can code a whole application for Android in C/C++ however -- you must have a Java wrapper at the very least.

提交回复
热议问题