Friday, August 26, 2011

ndk crash in constructor

在這篇post有講到
http://groups.google.com/group/android-porting/browse_thread/thread/5e1464ad78aaab5f

如果code在constructor就掛掉的話
在trace dump裡是看不出結果的

得要把notify gdb跟call cstor順序調換一下


Friday, August 19, 2011

books for c++ stl

Generic Programming and the STL

http://www.amazon.com/Generic-Programming-STL-Extending-Standard/dp/0201309564

Effective STL

http://www.amazon.com/dp/0201749629/?tag=stackoverfl08-20


The C++ Standard Template Library


http://www.amazon.com/C-Standard-Template-Library/dp/0134376331


The C++ Standard Library: A Tutorial and Reference

2011下半年的目標

話說這應該是今年年初就請寫的

1. 日本語 中級
2. C++ Template(Modern C++ Design), C++ STL
3. Python

不知道放不放得進去javascript....

Tuesday, August 9, 2011

android renderscript

官方的介紹
http://graphics-geek.blogspot.com/2011/06/android-rendering-options.html
http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
http://android-developers.blogspot.com/2011/03/renderscript.html

google io
http://www.google.com/events/io/2011/sessions/honeycomb-highlights.html

早期的renderscript是在eclair時的 libacc
http://jserv.blogspot.com/2009/12/libacc-android-20-c-compiler.html

不過最特別的是renderscript號稱 portable 跟 performance
不過心裡還是抱著很大的問號就是了

另外也有些地方不太了解
C++ on the other hand was very desirable but ran into issues with portability. The advanced C++ features are very difficult to run on non-cpu hardware
這裡的c++ advance feature 是什麼??

 For example, some compute hardware can support pointers and recursion while others cannot
什麼hardware會沒support pointer 跟recusrion呢??



Friday, July 29, 2011

custom android build.xml

之前要改android的build.xml時
通常先在我自己的build.xml最後那 改 setup import="false"
然後再去把SDK裡的template copy出來
加到build.xml的後面

不過今天發現
可以不用那麼麻煩
import="false"也不用加
只要先把template裡面的你想要改的target  copy出來
貼到你的build.xml上
再自己改想要改的東西  就可以了

inspired by class loading example http://code.google.com/p/android-custom-class-loading-sample/