android基础---->NDK的使用
NDK的发布,使“Java+C”的开发方式终于转正,成为官方支持的开发方式。NDK将是Android平台支持C开发的开端,今天我们开始ndk的学习。
NDK的简要说明
ndk是什么:
The Native Development Kit (NDK) is a set of tools that allow you to leverage C and C++ code in your Android apps. You can use it either to build from your own source code, or to take advantage of existing prebuilt libraries.
The NDK is not appropriate for most novice Android programmers, and has little value for many types of Android apps. It is often not worth the additional complexity it inevitably brings to the development process. However, it can be useful in cases in which you need to:
- Squeeze extra performance out of a device for computationally intensive applications like games or physics simulations.
- Reuse your own or other developers' C or C++ libraries.
什么场景可以应用ndk:
- 代码的保护,由于apk的java层代码很容易被反编译,而C/C++库反编译难度较大
- 在NDK中调用第三方C/C++库,因为大部分的开源库都是用C/C++代码编写的
- 便于移植,用C/C++写的库可以方便在其他的嵌入式平台上再次使用
- 提高程序的执行效率。将要求高性能的应用逻辑使用C开发,从而提高应用程序的执行效率。
使用NDK的Android项目
一、 先下载NDK的jar包,地址:http://192.168.10.75/android-ndk-r10e-windows-x86_64.exe。
点击直接解压,得到android-ndk-r10e文件夹,配置path系统变量:D:\android\ndk\android-ndk-r10e;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlAAAAA1CAIAAAABJkLSAAANYElEQVR4nO2d248UxxXG99+a52BFTpRVhCIegsEkZJxYydjIzs2RSGwnSptEjCy/RFEk90OElUTIYA8ybYd4WcBc1kBjG9hhgWUXdrhOuCy7rGGHbB56uvvUqVPV1XPbS38/7cPO9Knq0zXd9fU5Vd011AIASCwuLrcHxQDtPBiK1s7i8Q4N3A0AAABgGYDgAQAAKAQQPAAAAIUAggcAAKAQQPAAAAAUAggeAACAQgDBAwAAUAggeAAAAAoBBA8AAEAhgOABAAAoBBA8AAAAhQCCBwAAoBA4Cd5QTvrtNAAAAJAXV8FbcqZnglcrD5WqdXf7erUkFshbj1y2Xi0NlWud1dJnTAcu0k1rgNVD6Fcy8MO2aSPwvKCxrN5mE/qpw4RG4DkcYdvOC0LNXKo09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7z4vZE7W5e3HF637eO7/nexMhzM6deuDa2ZfrYxmazOXHoh6bi0krU2trcLPdoSifyFGW8NbEy1sNmi+T3ocxG3ViFolY5RHh8MTgEeasAJRmYJ8JT66ALpotWOW2MzpL1yeloo8s4mbHOgWQ36SiduscwCBq6gglLZXd8jGCt4Sp4t+qvJWo3c/b1kx9+8+ju4QsHNkwf2zj12YYrh9c3m80Lo1uEktHUDa5cvRW8UrXuIniM3D4MlUryRFByqNmCp2c7ezVaCQaFOvTFuuKMMbyWVMxslM/G7K/qUcaERxcGOJzXVi1pd5HgmWSNlwh9z/cDhHjFxVXwbpz9RaJ2U6d/Nbb3mSP/fLb+yforh9dPjg5Pjg5v+vhy/eBmoSTpzevVki3CU9KJsk7GNaopTR5fmeoxe+buAzkGDQfBox/V0JPkUZHRXMmIKTwiRlwItHxn/CH0KwYt69jGhDXNR80y69F3mrSH5Z8uifVMOIasCE/dkP3cAljbuArezBfbErW7fOLlsT3rjvzjmfFgOFK7ydHhZ3d9NT6ySSqapjPJFH1RbNSpG1XLDMmsSStyPYyOfYgsdFkStI2izHlhNQjzesCKhAcTNN/IumXyvB7doD+wp4dcndnYnO6J4Bkc65vgtfdGVbai3U44CB5/GFJ7OBIUBFfBmz79s0TtJo78eGzPusPvfYMK3uXR71469mpffQVgTeKSHOwugdg7wRsU0b2CcbJPhcSXDmN4ppFP4zawRnEVvOvnqxcOP3/+4KbzI5vPj2wZ27Nu9L1vnw02jB/cPD6y6fynz1069sqdqX199RWAtUj/9Q4A0Gq1cq2H9/X87TvTwcTx356sfefI3q0Xw92PZnEJAgAAWB1gAVgAAACFAIIHAACgEEDwAAAAFAIIHgAAgEIAwQMAAFAI/g9rmhaLOqjkqwAAAABJRU5ErkJggg==" alt="" />
在cmd中测试:如下表示环境变量配置成功
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzMAAABUCAIAAAA50P6eAAAOVklEQVR4nO2d7XLkqg5Fed3zVudNfX/cqTMdI4ktgW3cWatSU24M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r99WdWTV/nnFmZnwXOY9TneUrM9CPgwlueStWmfdvzI8oWM5P3MXwltKX8tyHOn1+UidZ6jl6YSw8ybz6T+UhIHXiZvPm6YuT7QgDENVMhoMa6t/PN+1v4loIei/P8OxeKm6z+jqN9Y/M0JawqrvCPmC+1PfGGurfAIj766P3vk4Vev2glanvderF7901A9PjNCv3+mao++enF8nGaVYO9PuaYvxeE6+703WsEw8wFefnRcAwFXqnfZxej22k0w/kovkW6yhDDqSU+LMZiLsWx+UNLZjMwzTeQzwt+/JTQ7NJNjkz881bJsNJbrYdduf1e5L1dILEBv0qeRvG89n8HlbN8GGK4qUaFy6Mc9lfNN9hX5jh6vjfnp9v5fHn8lQAjw8cAF7HU85sN64eOM7sDziz3wnPBQBAZ/i23Ndzw/CXOTMAAAAAmARnBgAAALALODMAAACAXcCZAQAAAOwCzgwAAABgF3BmAAAAALuAMwMAAADYBZwZAAAAwC7gzAAAAAB2AWcGAAAAsAs4MwAAAIBN+B9Du2Z5gq2RQQAAAABJRU5ErkJggg==" alt="" />
二、 我们建立一个Android的项目,和普通的android项目一样。这里我们用的IDE是eclipse。
我们创建jni文件夹:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPEAAAC4CAIAAAC9/p36AAAUHklEQVR4nO2d/1sT157H5++4P+6z694tvdvHWkLK7rWt2nK961Xb+/RRb3dFcZt92LXPdlutpWq9Kt+p1yhQrahXUWz4UvweUa5VRPCKQRQBbUJAEhUSkpiEBE6w7twfJpnMlzMZEiaZzPB5PefxSc6cmTkJr0xO4nnnECQAqAtC7g4AgMSA04DaSMRpn89ns9nMqsNms/l8PsmfYiDFxO202+222+3BYPDFi59VVoLBoN1ud7vdyXiigZQRt9NDVmsIhUKh6VAoFAqFRh3jB2ubK482VB5tqDnRTLX5uCKDWUiSDCmD6RAKDVmtEj/HQGqJ22mz2fzixQsUClFFf+j7sadWt2PE5XhMNaAkpqHu0u3TvLx48cJsNkvyzAJykaDTU1PIZh/dVVL58Nru4ODe0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ivity中增加native方法,此时MainActivity内容如下:
package com.example.firstndk; import android.os.Bundle;
import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity {
// 定义一个native方法
public static native String getStringFromNDK(); @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
二、 根据MainActivity生成头文件:
在命令行中做以下的操作:
C:\Users\Linux>cd J:\android\andridtest\eclipseTools\--\FirstNDK // 项目的本地目录 C:\Users\Linux>J: J:\android\andridtest\eclipseTools\--\FirstNDK>javah -classpath bin/classes;D:\android\ndk\jar\android.jar;D:\and
roid\ndk\jar\android-support-v7-appcompat.jar;D:\android\ndk\jar\android-support-v4.jar -d jni com.example.firstndk.Main
Activity
上述的效果如下,在jni文件夹中生成com_example_firstndk_MainActivity.h文件,内容如下:
命令行的格式说明:javah -classpath 编译项目所需的jar包路径 -d 编译文件的存放位置(相对路径jni) 编译的对象类
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_example_firstndk_MainActivity */ #ifndef _Included_com_example_firstndk_MainActivity
#define _Included_com_example_firstndk_MainActivity
#ifdef __cplusplus
extern "C" {
#endif
#undef com_example_firstndk_MainActivity_BIND_ABOVE_CLIENT
#define com_example_firstndk_MainActivity_BIND_ABOVE_CLIENT 8L
#undef com_example_firstndk_MainActivity_BIND_ADJUST_WITH_ACTIVITY
#define com_example_firstndk_MainActivity_BIND_ADJUST_WITH_ACTIVITY 128L
#undef com_example_firstndk_MainActivity_BIND_ALLOW_OOM_MANAGEMENT
#define com_example_firstndk_MainActivity_BIND_ALLOW_OOM_MANAGEMENT 16L
#undef com_example_firstndk_MainActivity_BIND_AUTO_CREATE
#define com_example_firstndk_MainActivity_BIND_AUTO_CREATE 1L
#undef com_example_firstndk_MainActivity_BIND_DEBUG_UNBIND
#define com_example_firstndk_MainActivity_BIND_DEBUG_UNBIND 2L
#undef com_example_firstndk_MainActivity_BIND_IMPORTANT
#define com_example_firstndk_MainActivity_BIND_IMPORTANT 64L
#undef com_example_firstndk_MainActivity_BIND_NOT_FOREGROUND
#define com_example_firstndk_MainActivity_BIND_NOT_FOREGROUND 4L
#undef com_example_firstndk_MainActivity_BIND_WAIVE_PRIORITY
#define com_example_firstndk_MainActivity_BIND_WAIVE_PRIORITY 32L
#undef com_example_firstndk_MainActivity_CONTEXT_IGNORE_SECURITY
#define com_example_firstndk_MainActivity_CONTEXT_IGNORE_SECURITY 2L
#undef com_example_firstndk_MainActivity_CONTEXT_INCLUDE_CODE
#define com_example_firstndk_MainActivity_CONTEXT_INCLUDE_CODE 1L
#undef com_example_firstndk_MainActivity_CONTEXT_RESTRICTED
#define com_example_firstndk_MainActivity_CONTEXT_RESTRICTED 4L
#undef com_example_firstndk_MainActivity_MODE_APPEND
#define com_example_firstndk_MainActivity_MODE_APPEND 32768L
#undef com_example_firstndk_MainActivity_MODE_ENABLE_WRITE_AHEAD_LOGGING
#define com_example_firstndk_MainActivity_MODE_ENABLE_WRITE_AHEAD_LOGGING 8L
#undef com_example_firstndk_MainActivity_MODE_MULTI_PROCESS
#define com_example_firstndk_MainActivity_MODE_MULTI_PROCESS 4L
#undef com_example_firstndk_MainActivity_MODE_PRIVATE
#define com_example_firstndk_MainActivity_MODE_PRIVATE 0L
#undef com_example_firstndk_MainActivity_MODE_WORLD_READABLE
#define com_example_firstndk_MainActivity_MODE_WORLD_READABLE 1L
#undef com_example_firstndk_MainActivity_MODE_WORLD_WRITEABLE
#define com_example_firstndk_MainActivity_MODE_WORLD_WRITEABLE 2L
#undef com_example_firstndk_MainActivity_DEFAULT_KEYS_DIALER
#define com_example_firstndk_MainActivity_DEFAULT_KEYS_DIALER 1L
#undef com_example_firstndk_MainActivity_DEFAULT_KEYS_DISABLE
#define com_example_firstndk_MainActivity_DEFAULT_KEYS_DISABLE 0L
#undef com_example_firstndk_MainActivity_DEFAULT_KEYS_SEARCH_GLOBAL
#define com_example_firstndk_MainActivity_DEFAULT_KEYS_SEARCH_GLOBAL 4L
#undef com_example_firstndk_MainActivity_DEFAULT_KEYS_SEARCH_LOCAL
#define com_example_firstndk_MainActivity_DEFAULT_KEYS_SEARCH_LOCAL 3L
#undef com_example_firstndk_MainActivity_DEFAULT_KEYS_SHORTCUT
#define com_example_firstndk_MainActivity_DEFAULT_KEYS_SHORTCUT 2L
#undef com_example_firstndk_MainActivity_RESULT_CANCELED
#define com_example_firstndk_MainActivity_RESULT_CANCELED 0L
#undef com_example_firstndk_MainActivity_RESULT_FIRST_USER
#define com_example_firstndk_MainActivity_RESULT_FIRST_USER 1L
#undef com_example_firstndk_MainActivity_RESULT_OK
#define com_example_firstndk_MainActivity_RESULT_OK -1L
#undef com_example_firstndk_MainActivity_HONEYCOMB
#define com_example_firstndk_MainActivity_HONEYCOMB 11L
#undef com_example_firstndk_MainActivity_MSG_REALLY_STOPPED
#define com_example_firstndk_MainActivity_MSG_REALLY_STOPPED 1L
#undef com_example_firstndk_MainActivity_MSG_RESUME_PENDING
#define com_example_firstndk_MainActivity_MSG_RESUME_PENDING 2L
/*
* Class: com_example_firstndk_MainActivity
* Method: getStringFromNDK
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_example_firstndk_MainActivity_getStringFromNDK
(JNIEnv *, jclass); #ifdef __cplusplus
}
#endif
#endif
com_example_firstndk_MainActivity.h
主要有用的内容是声明了一个Java_com_example_firstndk_MainActivity_getStringFromNDK的方法:
JNIEXPORT jstring JNICALL Java_com_example_firstndk_MainActivity_getStringFromNDK
(JNIEnv *, jclass);
三、 在jni文件夹下,创建一个C文件,我们命令为:hellondk.c
#include<stdio.h>
#include "com_example_firstndk_MainActivity.h" JNIEXPORT jstring JNICALL Java_com_example_firstndk_MainActivity_getStringFromNDK
(JNIEnv * env, jclass jclass) { return (*env)->NewStringUTF(env, "Hello, NDK.");
}
在jni中创建一个Android.mk文件(可以从官方文档的项目复制过来,做修改就可)。
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := hellondk
LOCAL_SRC_FILES := hellondk.c include $(BUILD_SHARED_LIBRARY)
LOCAL_SRC_FILES就是我们创建的C代码的源文件hellondk.c,而LOCAL_MODULE就是hellondk。其它的不需要做改动。
四、 在MainActivity中增加对JNI的调用,此时的MainActivity.java内容如下:
package com.example.firstndk; import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView; public class MainActivity extends AppCompatActivity { private TextView textView;
// 定义一个native方法
public static native String getStringFromNDK(); static {
System.loadLibrary("hellondk");
} @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); textView = (TextView) findViewById(R.id.textView);
textView.setText(getStringFromNDK());
}
}
命令行中编译项目:ndk-build,生成obj文件夹
J:\android\andridtest\eclipseTools\--\FirstNDK>ndk-build
Android NDK: WARNING: APP_PLATFORM android- is larger than android:minSdkVersion in ./AndroidManifest.xml
[armeabi] Compile thumb : hellondk <= hellondk.c
[armeabi] SharedLibrary : libhellondk.so
[armeabi] Install : libhellondk.so => libs/armeabi/libhellondk.so
生成的obj内容大致如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOIAAADQCAIAAACVwComAAAPQklEQVR4nO2da3MT1x2H91vkG/CitNNJgo3rmTSpE2hI0pR2pjPJTDCQTtU2TWaaIQQIAYKxsWxMWGFMQsCQcTAYIy4xWG5jwCG2Y3C4hQBtJV9AJr5IWluSddmVnNm+kC2ttLu67+Wsf8+cAe3Rnl15eDirlc7Pf4rPhf7+/kAgkHG31rd/1rljubt/I3t/F3u/mr1fwz7YzT6oZR+Y2f/Uufo/uFj9gmv4Zk6nBosZSomD3jy394u3l7a/9+Tp95dZN5ee2VJ2dkvZ2S1lZ7aUdVb/9vqJrcGZCSXOC4yKIpoCUFygKSAAaAoIAJoCAoCmgACgKSAAaAoIAJoCAtCfpg66nCqnHXk9CwyKUpqGmLHBpsq++lf76l8dbKoMMWPZjoSmQERummb5nT7P81frfx/2OH4Ku38Ku33OmwMHK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+qar+5o6n6/ofOdXWedbjbW6M/atH6B+gKaakPDp+0PXaxca/i0XesXqC+gqTbUNp1J37R+gfoCmgICgKaAAKApIABoCggAmgICgKao0kQA0BRVmggAmhZYpclk44VfBsqtGjbWcmbVgaYFVmmCpmoATQus0pTyTw9NFQGaFlilCZqqATQtsEpT/KKfSGmYbInFaoI1b7rOMEmsBFTm15PnBzQtsEqThKZJcmbIG+kjwyQx1WZMNakKNC2wSpPkbBrfIVPeSCcZpvmXkjwjK1PhKT+gaYFVmgrTVCcZJsGrTfxnUabCU35A0wKrNEld9JPCPnHndJxhctC0YMjCfw5FKjzlBzQtsEqT1GxqEt1B6T7DJL7pwy2UvkCVJv0DTVGliQCgKao0EQA0BQQATQEBQFNAANAUEAA0BQTwf6EE2e88JIgoAAAAAElFTkSuQmCC" alt="" />
五、 在模拟器中运行项目,得到结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASsAAAHwCAIAAABxP94PAAAaUUlEQVR4nO3de1SU553A8ZkBTaLRtrZWm0TtCCpqjHIRxGyqwbuxahJrY9qsTbVrlpxgImMiSgAlmpB1XYUkBmu9nJqbjRoF3JSQrLGhGmWbc1oVDCIIIneQ6zDvALN/POHdcRgQEP156vdzOJ6ZZ573why+vpch0WAAAAAAgDuS0Wg0mUzGVupxN9ZjMpna3YSnp2effp59+nn2udfjnr43sLPAPxeTyTRw4MCRI0cGBgZOnjw5ICDA29t7wIAB3YjQx8fH7bjRZPrBg0ETYnZNiNk1PvoPPqEbTL16G43t5gr8kzMajffcc8+IESPmz58fFhb26quvRl8rMjIyNDR0zpw5ZrO5d+/e163RZDI9+OCDs2bNct2QyfTAjF+YH1/usyIqKD45MD4pcFuS/+vvmx9fZn7y377nPe6mfYvA7cpoNI4aNWrVqlUqtqioqOjo6A0bNmzcuPH1119/7bXX1q9fr49HRUWtXLlyyJAhHa9z6NChCxcunD59uuu2PDzHRbwduO1IUHxyUELKpLdSJr11dFJCSlB8clB80uAp893tn8no6enyZTB5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Z2fpIeHh4enq6pmk1NTVRUVEnTpz461//+v77769bt+7MmTNqzokTJ44cOaIe19TUbN269cKFC135FoFb56YUWFdXpx9zOiiwvr6+vr6+g22lp6fHxMTEx8fbbDY14lzg5s2b9ZlXrlzZtGmTWpteYENDw+9///u0tDR9ceB208MFlpaW7tmzZ8eOHQkJCSkpKVar1W2B5eXle/fufffddxMTE/ft21deXu52W+np6fv379+3b19aWpoaaa9ATdMOHjz4xRdfaK0FNjY2pqSkHDhwoEvfHXCLdafA1atXnz9/vr5VSUmJXuD+/fuPHj1qs9msVmtERMTf//53twUmJSUdPHjQZrPZbLb33nuvvU5UgVVVVZGRkcXFxVqHBX766afbt2/XNO3EiRN79+49evTo5s2bGxsbu/yWALdQdwq0WCzvv/9+SqtDhw7pBa5fv/4vf/lLRkZGRkbGpk2bPv/8c7cFbty4sba2Vi1SVVUVFxfndluqQE3TTp06tXPnTpvN1nGB77zzjqZpJ06c2Lp164cffrhly5arV6926bsDbrEePgu1WCwff/zxoVZZWVluC3z55Zf1xRsbG1999VW329ILbGhoiI+PP3nyZAcFJicnq2Opfh24e/fugwcPchjE7ayHC3zzzTerqqqc57stcOvWrRUVFWpCUVFRQkKC223pBWqaVlJS8tprr7VXoM1mi4uLKykp0ZwKrK+v37Jli35fFLgN9XCBqampiYmJxcXFFRUV6enpZWVlbgv86quvEhIS1P8peOvWrV9++aWmaTk5OadPn3belnOBauXOBW7atKmwsLCwsPDs2bM7duw4fPiwmub8aURFRcWWLVv+9re/aZpWWlqamZnZtbcHuMm6U2BkZKT6WFyprKyMiIjQnx4/fnzdunURERF/+tOf1L3Qbdu2qY/I9+3bp2LQNO3UqVORkZGRkZFff/21GklJSdm5c6fztk6ePHnw4EH9aX19fURExMmTJzVNq6mpiYiIiIiIWLduXWJi4uXLl/Vpp06dSklJ0Z9evHgxMjIyLy8vMzPz0KFDXfpmgZvtpvxWmrrJ2aVpNpttx44dziEBd4Lb5fdCbTZbfn6+9F4At9rtUiBwZ6JAQBIFAp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IsyPVpRmd8XPI3fZxyYoSxeR+QKugfAVJ8+fIW4Xx1oNwEQY/l817vrZVVI2ctS19N1v6braIy+Y9z6gX0j/zxn0cEly3MbZFN2HwM37utOrmvurmvhrlf10/JMyZxqgX5KEartCdoLqN24einDD4GTd7RtycGXFzpi+cPd31g+fn6XGzZ8TNns6oF/RQEp7QnaF22z3bxeAZ1WB9GQD8Aj8B4Bf4CQC/wE8A+AV+AsAv8BMAfgmDn2dsSdpyvvCDnu424zsDAM+Ewc8PC5K1+UNXTiw+c/yDO87G4dprJH3SH0mvBegSBj+PH1nb139fVarPxH96PL7wmNDhbBqWvUbSMR1JrwXoEgY/jx4Sevrur88uS0w/M/8D2x+XHujpu3/zfJL9dPwl22Jb/gbju0SDtztfeesPMIIw+HkoL6W7d5BVDuWlGN8lGrz5wFt/gBGEwc/c3I2dPYPrs8tW7zyXuOV0fMqpeWuPvbsy/+0leZ09g7m5Gxn1wh7kE3QfmNWpXSLbtMh3DnsWjum9FupCNGBGwuDnnr1bnHcHWGXPXtY3f/IS5BNEBhKrOrVLqjZVC6/ZFTHQRhDhyO/L3tbeNUAdP9u7BjKzWd9sz2GQT4B9YFWndom5L1+vRR1fAkxMOPL7MjNaOwdYZXtmBqMeh0E+AfZBx0+KTf75ydTQNfzCUnMTBj+3ZGQ2d/RTx8/mjv4tGZmMerwE+QSRgcSqTu2SH35SK9oFgXbODcxIGPxM257d5OxnlbTt2Yx6PAT5BJmBxKpO7ZK6TWV/9F4L9QIUMCNh8FNIz2loF9dnl63aXpyQVvj+mmN/WnawoV10FSE9h1GPhyCf4DNWoAwIgHDka27OrWsTWWXN5lxGPR6CfOAnMJRw5GumHdAvjHo8BPnAT2AoWF8GAL/ATwD4BX4CwC/wEwB++f9H14L138R8yAAAAABJRU5ErkJggg==" alt="" />
友情链接
具体的视频地址: http://pan.baidu.com/s/1dEEO5Mh
android基础---->NDK的使用的更多相关文章
- Android之NDK开发(转)
Android之NDK开发 一.NDK产生的背景 Android平台从诞生起,就已经支持C.C++开发.众所周知,Android的SDK基于Java实现,这意味着基于Android SDK进行开发的第 ...
- Android之NDK开发
转自:http://www.cnblogs.com/devinzhang/archive/2012/02/29/2373729.html 一.NDK产生的背景 Android平台从诞生起,就已经支持C ...
- 【转】Android之NDK开发
原文网址:http://www.cnblogs.com/devinzhang/archive/2012/02/29/2373729.html 一.NDK产生的背景 Android平台从诞生起,就已经支 ...
- 【转】android 最新 NDK r8 在window下开发环境搭建 安装配置与使用 详细图文讲解,完整实际配置过程记录(原创)
原文网址:http://www.cnblogs.com/zdz8207/archive/2012/11/27/android-ndk-install.html android 最新 NDK r8 在w ...
- 【Xamarin开发 Android 系列 4】 Android 基础知识
原文:[Xamarin开发 Android 系列 4] Android 基础知识 什么是Android? Android一词的本义指“机器人”,同时也是Google于2007年11月5日宣布的基于Li ...
- android的JNI标准 android的NDK
转载的! Java Native Interface (JNI)标准是java平台的一部分,它允许Java代码和其他语言写的代码进行交互.JNI 是本地编程接口,它使得在 Java 虚拟机 (VM) ...
- android基础---->IntentService的使用
这一篇博客,我们开始前台服务与IntentServie源码分析的学习,关于service的生命周期及其简单使用,请参见我的博客:(android基础---->service的生命周期) 目录导航 ...
- android 最新 NDK r8 在window下开发环境搭建 安装配置与使用 详细图文讲解,完整实际配置过程记录(原创)
android 最新 NDK r8 在window下开发环境搭建 安装配置与使用 详细图文讲解,完整实际配置过程记录(原创) 一直想搞NDK开发却一直给其他事情耽搁了,参考了些网上的资料今天终于把 ...
- Android之NDK开发(转载)
http://www.cnblogs.com/devinzhang/archive/2012/02/29/2373729.html 一.NDK产生的背景 Android平台从诞生起,就已经支持C.C+ ...
随机推荐
- C语言 · 判定字符位置
算法训练 6-3判定字符位置 时间限制:1.0s 内存限制:512.0MB 返回给定字符串s中元音字母的首次出现位置.英语元音字母只有‘a’.‘e’.‘i’.‘o’.‘u’五个. 若 ...
- Bit operator: Left shift and Right shift (Signed or unsigned? )
No matter left shift or right shift, the result's sign should always be the same as its left operand ...
- 字符串移位:如“abcdefghi”右移2位后变成“cdefghiab”
函数头: //pStr 是指向以'\0'结尾的字符串指针 //steps 是要求移动的步数 void LoopMove(char *pStr, int steps) { //...... } 使用库函 ...
- 获取touchstart,touchmove,touchend 坐标
简单说下如何用jQuery 和 js原生代码获取touchstart,touchmove,touchend 坐标值: jQuery 代码: $('#id').on('touchstart',funct ...
- mysql主服务器 binlog_format 的 statement,row, mixed 三种格式对比。
主服务器的日志格式用哪种好? 有 statement,row, mixed3种,其中mixed是指前2种的混合. 以insert into xxtable values (x,y,z)为例, 影响: ...
- javascript时钟代码 DEMO-002
转载自:http://www.cnblogs.com/Mygirl/archive/2012/03/30/2425832.html 正常时间显示 复制代码 <SCRIPT language=ja ...
- [oracle] 安装卸载及常见问题
(1)安装oracle10g备注: ① 检查安装版本是否复合安装主机的硬件要求,避免版本不兼容.如64位的oracle就不能在x86的机器上运行安装. ② 检查安装主机是否满足oracle的硬件要求, ...
- (转)I,P,B帧和PTS,DTS的关系
基本概念: I frame :帧内编码帧 又称intra picture,I 帧通常是每个 GOP(MPEG 所使用的一种视频压缩技术)的第一个帧,经过适度地压缩,做为随机访问的参考点,可以当成图象. ...
- QWidget:Must construct a QApplication before a QWidget。
异常描述: 用PyQt开发的界面程序,再新增加了几个module后, 在eric6开发环境下启动后什么都没出现,什么错误提示也都没有, 在控制台下:python XXXX.py 后显示 QWidg ...
- ThinkPHP中调用PHPExcel
//引入PHPExcel vendor('PHPExcel.PHPExcel'); // Create new PHPExcel object $objPHPExcel = new PHPExcel( ...