I've been trying to give out a matrix via logcat while using c++ and JNI. I'm totally new to this stuff and so after some research I tried it with the following code:
for(int i = 0; i<4; i++){
for (int j = 0;j<4; j++){
float v = Matrix[i][j];
__android_log_write(ANDROID_LOG_INFO , "Matrix: ", (char*)&v);
}
}
but this approach just gives me :
07-22 09:21:56.517 14487-14582/name.example I/Matrix:﹕ [ 07-22 09:21:56.517 14487:14582 I/Matrix: ]
How can I show what's inside the matrix?