转载(Android Native code 不用 NDK) 手动编译好了复制进去就行了
- Java_to_branda_foo_00024bar_take_1me()
如果你是用?Android?SDK 你的 Java code, native code 放在
- libs/xxxx/目下,"xxxx" 是 architecture 名; 如 armeabi。 ant 在包 Java App ,自 "libs" 目下的西,到 apk 的 lib/ 目下。(ant 是?Android?SDK 所使用的 build system,如果您是使用 Eclipse 境, Eclipse 自行呼叫 ant)
以上方式,是你已有 toolchain ,可能也已了?Android?source tree ,好完整的Android?。,你可能不想再 NDK 。另外,你可能拿到人好的 binary ,想直接放使用。以上情,你都可以案放到的位置,由 ant 或 aapt 忙包到你的 apk 。
?

- libs/xxxx/目下,"xxxx" 是 architecture 名; 如 armeabi。 ant 在包 Java App ,自 "libs" 目下的西,到 apk 的 lib/ 目下。(ant 是?Android?SDK 所使用的 build system,如果您是使用 Eclipse 境, Eclipse 自行呼叫 ant)
