c++ code example added to NdkSample