MainActivity --package com.example.myfirstapp 创建 AntTest 为例,命令如下: android create project --target android build.xml 文件,在项目根目录下,用作ant的配置文件; 如果没有,则通过android update更新生成,命令如下: android update project --target android
# LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) TARGET_PLATFORM := android-3 LOCAL_MODULE
进入$NDK_ROOT/build/platforms/android-3/arch-arm/usr/include,里面有很多.h文件,这些都是可以在NDK里面调用的,除了linux和asm目录下的。
下分别创建add-ons、docs、platforms、platform-tools、tools,解压文件到相应的目录: android-1.5_r04-windows.zip==>platforms\android
@ubuntu:~/workspace/android/NDK/hello-jni$ javah -classpath /home/homer/android-sdk-linux/platforms/android com.example.hellojni.HelloJni -classpath bin/classes:表示当前类的路径,/home/homer/android-sdk-linux/platforms/android
The following levels are currently supported: android-3 -> Official Android 1.5 system images