一句JAVA不写,但不等于不要ECLIPSE,呵呵。
楼主可以仔细看一下NDK文档,在ECLIPSE中建一个ANDROID工项目,但不用写代码,只要有AndroidManifest.XML,目的是用于打包APK,否则你生成的SO没法安装。
另外参考NDK文档修改AndroidManifest.XML

解决方案 »

  1.   

    android程序还是java启动的,应用程序首先执行的是ActivityThread.main()
    这就是java程序的入口点啊。不需要你写java,但需要配置好环境吧。需要用到的java代码时自动生成的。
      

  2.   

    确实可以不用Java了,已经编译通过并且在avd中运行了
    代码级别是不需要Java了,但目前貌似还是离不开jni以及虚拟机
    不过这个以后应该会脱离Java独立开发的另外Lz你确定你编译了么,默认eclipse是编译不了的
    android-ndk-r5b/ndk-build
    在项目的路径中使用如上命令才会生成相应的so文件
    /**
     * This is the main entry point of a native application that is using
     * android_native_app_glue.  It runs in its own thread, with its own
     * event loop for receiving input events and doing other things.
     */
    void android_main(struct android_app* state) {
        struct engine engine;
        ....}