找回密码
 立即注册
原生Androidnativethe | android开发 2022-10-30 103 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
AndroidNDK是在SDK前面又加上了“原生”二字,即NativeDevelopmentKit,因而又被Google称为“NDK”。在此之前,Android平台的第三方使用程序均是依托基于Java的Dalvik特制虚拟机进行开发的。原生SDK的公布可以让开发者愈加直接的触摸Android系统资源,并使用传统的C或C++语言编写程序,并在程序封包文件(.apks)中直接嵌入原生库文件。不过,Google也表示,使用原生SDK编程比较Dalvik虚拟机也有一些下风,比方程序愈加杂乱,兼容性难以保证,无法访问FrameworkAPI,Debug难度更大等。开发者需求自行斟酌使用。众所周知,Android程序运行在Dalvik虚拟机中,NDK允许用户使用相似C/C++之类的原生代码语言履行部分程序。NDK包括了:从C/C++生成原生代码库所需求的工具和buildfiles。将一致的原生库嵌入可以在Android设备上部署的使用程序包文件(applicationpackagesfiles,即.apk文件)中。支持一切未来Android平台的一些列原生系统头文件和库如果你有更多关于的NDK的问题,可以到NDK论坛寻觅答案。

(Android NDK is also called "NDK" by Google because the word "native" is added in front of the SDK, that is, the Native Development Kit. Prior to this, third-party applications of the Android platform were developed based on the Java based Dalvik special virtual machine. The release of the native SDK allows developers to more directly touch Android system resources, write programs using traditional C or C  languages, and directly embed native library files in program package files (. apks). However, Google also said that using native SDK programming has some disadvantages compared with Dalvik virtual machine. For example, the program is more messy, compatibility is difficult to ensure, the Framework API cannot be accessed, and debugging is more difficult. Developers need to use at their own discretion. As we all know, Android programs run in the Dalvik virtual machine, and NDK allows users to use native code languages like C/C  to perform some programs. NDK includes tools and buildfiles required for generating native code libraries from C/C  . Embed the consistent native library into the application package files (i.e.. Apk files) that can be deployed on Android devices. A list of native system header files and libraries supporting all future Android platforms If you have more questions about NDK, you can go to the NDK forum to find the answers.)

[下载]16082488553.rar




上一篇:3G手机Android应用开发第五天课程2.TCPIP协议
下一篇:[转载]Android学习笔记(三)