随笔分类 - 【java】
摘要:The Adapter Pattern converts the interface of a class into another interface the clients expect.Adapter lets classes work together that couldnot otherwise beause of incompatible interfaces. 1 interface Duck { 2 public void quack(); 3 public void fly(); 4 } 5 6 interface Turkey { 7 publi...
阅读全文
摘要:依然没成功,看到别人很容易的就跑起来了,我这里,这不行那不行,就像我最近的状态一样(睡的也挺早,起的也挺晚,就是没精神); 重新做一下hello-jni屡屡思路,hello-jni成功跑起来,cocos2d-x helloworld继续不行,发给别人竟然可以运行…… mark2011121816:22没修改什么东西,竟然跑起来了! attention:(配置完环境后) 如果加载本来就有android的配置就不用管这个create-android-project.bat(这个就负责生成android目录结构)。 在android目录下找到build_native.sh修改(这个的作...
阅读全文
摘要:今天下午把cygwin安装上,尝试把hello-jni跑了起来;不过当把cocos2d-x中的helloworld放到模拟器上时总是跑不起来(黑屏等待),不知什么原因!write by fgd
阅读全文
摘要:原先,不是很理解ndk和jni,认为ndk封装了jni,也写过一个helloworld的jni例子,今天查了查: 1.jni是java原先提供的调用c++/c的一种机制 2.ndk是google对于android提供的一种调用c++/c的一种机制。 类似于java虚拟机和dalvik的关系;此java非彼java;这是目前心中jni和ndk的概念。 配置android环境中(sdk,ndk-win32下还要模拟linux环境),比较慢,待续
阅读全文
浙公网安备 33010602011771号