游戏人生

不积跬步,无以至千里;不积小流,无以成江海。

导航

统计

随笔分类 -  NDK

working related stuff on Android NDK
[工作积累] Google/Amazon平台的各种坑
摘要:所谓坑, 就是文档中没有标明的特别需要处理的细节, 工作中会被无故的卡住各种令人恼火的问题. 包括系统级的bug和没有文档化的限制. 继Android的各种坑后, 现在做Amazon平台, 遇到的坑很多, 这里记录一下备忘: 先汇总下Android Native下的各种问题, 当然有些限制有明确文档 阅读全文

posted @ 2014-08-19 17:00 crazii 阅读(2242) 评论(0) 推荐(0) 编辑

[工作积累] NDK通过Java获取package name 和version
摘要:////////////////////////////////////////////////////////////////////////////Java code snippet//get APK's versionCode in AndroidManifest.xmlpublic int ... 阅读全文

posted @ 2014-08-14 18:40 crazii 阅读(3982) 评论(5) 推荐(0) 编辑

[工作记录] Android OpenSL ES: references & AAC related
摘要:AAC V.S. MP3http://en.wikipedia.org/wiki/Advanced_Audio_Coding#AAC.27s_improvements_over_MP3AAC patent lisense FAQ:http://www.vialicensing.com/licensi... 阅读全文

posted @ 2014-07-30 21:29 crazii 阅读(1172) 评论(0) 推荐(0) 编辑

[工作记录] Android OpenGL ES: non-square texture - continue
摘要:previous:[工作记录] Android OpenGL ES 2.0: square texture not supported on some devicerecently I found that it is the mipmap of a non-square texture thatc... 阅读全文

posted @ 2014-07-19 21:28 crazii 阅读(346) 评论(0) 推荐(0) 编辑

工作记录 - OBB的解决方案
摘要:之前关于OBB的内容: Android上使用native IO 最近工作中的问题笔记 工作记录[续] android OBB 自从用了Java来mount OBB, 再也没有遇到挂载的问题. 但最近在LG Nexus5 和LG G2上测试, 发现某个大约30K文件的文件, 一次性读取出来以后, 处理 阅读全文

posted @ 2014-07-16 19:28 crazii 阅读(2844) 评论(0) 推荐(0) 编辑

[工作记录] NDK: AKEYCODE_DEL not notified
摘要:https://code.google.com/p/android/issues/detail?id=42904#makechanges我们游戏的输入系统是自己渲染(通过跨平台渲染接口)的. 首先有predefined的keycode, 然后平台相关的模块把platform keycode map到... 阅读全文

posted @ 2014-06-27 17:11 crazii 阅读(349) 评论(0) 推荐(0) 编辑

[工作记录] Android OpenGL ES 2.0: square texture not supported on some device
摘要:npot texture: non-power-of-two texture.rectangle texture: non-square (height != wdith)在测试Samsumg Galaxy S4的时候, 发现rectangle texture支持不好, 虽然创建成功, 但是绘制有问... 阅读全文

posted @ 2014-06-20 21:07 crazii 阅读(351) 评论(0) 推荐(0) 编辑

NDK: unable to watch local variables after using GCC4.8
摘要:the problem definitly apears after changing toolchain from gcc 4.6 to gcc 4.8.here's a solution with all details, no extra explanation needed:http://s... 阅读全文

posted @ 2014-06-07 15:27 crazii 阅读(190) 评论(0) 推荐(0) 编辑

工作记录[续] android OBB
摘要:前两篇在这里:Android上使用native IO最近工作中的问题笔记最近遇到的问题是,java.io.IOException: FAT FullStackOverflow的结果:http://stackoverflow.com/questions/18906055/what-causes-job... 阅读全文

posted @ 2014-05-31 16:46 crazii 阅读(4872) 评论(4) 推荐(0) 编辑

NDK: GCC 4.6 crashes
摘要:used version: NDK r9b,arm-linux-androideabi-4.6 GCC, with "-O2 -finline-limit=24".got this error:internal compiler error: segmentation faultI remember... 阅读全文

posted @ 2014-05-27 19:47 crazii 阅读(457) 评论(0) 推荐(0) 编辑

WARNING: Calls to any function that may require a gradient calculation inside a conditional block may return undefined results
摘要:GLES2.0:Some device will give a warning on compling shaders(yet the compling will succeed), and the rendering result is incorrect with blink & artifac... 阅读全文

posted @ 2014-05-17 21:21 crazii 阅读(1092) 评论(0) 推荐(0) 编辑

crash - JNI WARNING: input is not valid modified utf-8: illegal continuation byte
摘要:the key point is "Modified UTF-8" is not like "Regular UTF-8", a legal Rgular UTF8 code sequence may be considered illegal against Modified UTF8.One w... 阅读全文

posted @ 2014-05-08 12:51 crazii 阅读(5815) 评论(0) 推荐(0) 编辑

android adb: wireless debug
摘要:http://developer.android.com/tools/help/adb.html#wireless 阅读全文

posted @ 2014-05-08 12:51 crazii 阅读(223) 评论(0) 推荐(0) 编辑

最近工作中的问题笔记
摘要:调试GLES, 发现某平台有各种问题,1.用三星手机测试和iphone测试, 在drawcall以后不调用glDisableVertexAttribArray, 没有问题. 但在某平台下,后续的draw call会花屏.实际问题主要是因为shader会优化掉某些不用的attrib, 这种情况下, 要... 阅读全文

posted @ 2014-04-09 10:34 crazii 阅读(1737) 评论(0) 推荐(0) 编辑

[原] Android上使用native IO
摘要:首先, 官方google play对APK大小有限制: 50M.(https://support.google.com/googleplay/android-developer/answer/113469?hl=en)所以想通过google play发布大数据的应用的话, 得通过扩展包, 一个叫做O... 阅读全文

posted @ 2014-01-09 18:46 crazii 阅读(4051) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示