找回密码
 立即注册
本地java使用交互 | android开发 2022-11-29 78 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
JNI一开始是为了本地已编译语言,尤其是C和C++而设计的,可是它并不妨碍你使用其他语言,只需调用约好受支持就可以了。使用java与本地已编译的代码交互,通常会丧失平台可移植性。可是,部分状况下这样做是可以承受的,甚至是有必要的。例如,使用一些旧的库,与硬件、操作系统进行交互,或许为了提升程序的功能。JNI标准至少确保本地代码能工作在任何Java虚拟机环境下。

(JNI was originally designed for local compiled languages, especially C and C  , but it does not prevent you from using other languages. You just need to call the supported ones. Using java to interact with locally compiled code usually loses platform portability. However, in some cases, it is affordable or even necessary to do so. For example, use some old libraries to interact with hardware and operating systems, perhaps to improve the function of programs. The JNI standard at least ensures that the local code can work in any Java virtual machine environment.)

[下载]10523823603.rar




上一篇:Android手机内存管理与性能优化视频教程
下一篇:actionbar标题栏