The Native Android API

Overview<具体参考 : http://mobilepearls.com/labs/native-android-api/#native-application-api>

Android exposes a native API to applications through the Native Development Kit (NDK). It is described in the $NDK/docs/STABLE-APIS.html document and summarized below:

NameIncludeLinking (LOCAL_LDLIBS :=...)Android version
C runtime library (libc)#include ...Automatic1.5
Java Native Interface#include <jni.h>Automatic1.5
System properties#include <sys/system_properties.h>Automatic1.5
Math#include <math.h>Automatic (-lm not needed)1.5
POSIX Threads (pthreads)#include <pthread.h>Automatic (-lpthread not needed)1.5
C++#include ..Automatic (-lstdc++ not needed)1.5
Android logging API#include <android/log.h>-llog1.5
Zlib#include <zconf.h> #include <zlib.h>-lz1.5
Dynamic linker#include <dlfcn.h>-ldl1.5
OpenGL ES 1.x#include <GLES/gl.h> #include <GLES/glext.h>-lGLESv1_CM1.6
OpenGL ES 2.0#include <GLES2/gl2.h> #include <GLES2/gl2ext.h>-lGLESv22.0
Android bitmap API#include <android/bitmap.h>-ljnigraphics2.2
EGL#include <EGL/egl.h> #include <EGL/eglext.h> #include <EGL/eglplatform.h>-lEGL2.3
OpenSL ES#include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Platform.h> #include <SLES/OpenSLES_Android.h> #include <SLES/OpenSLES_AndroidConfiguration.h>-lOpenSLES2.3
Android native application APIEvent loop: #include <android/looper.h>
Input events: #include <android/input.h> #include <android/keycodes.h>
Sensor events: #include <android/sensor.h>
Window/Surface management: #include <android/rect.h> #include <android/window.h> #include <android/native_window.h> #include <android/native_window_jni.h>
Assets: #include <android/asset_manager.h>
Configuration: #include <android/configuration.h>
OBB files: #include <android/storage_manager.h> #include <android/obb.h>
Native activity: #include <android/native_activity.h>
-landroid2.3
OpenMAX AL#include <OMXAL/OpenMAXAL.h> #include <OMXAL/OpenMAXAL_Platform.h> #include <OMXAL/OpenMAXAL_Android.h>-lOpenMAXAL4.0
OpenGL ES 3.0#include <GLES3/gl3.h> #include <GLES3/gl3ext.h>-lGLESv34.3

转载于:https://www.cnblogs.com/MMLoveMeMM/articles/3736048.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值