Fixed some Android JNI bugs.
Merge pull request #50 from DanielUranga/master

Fixed some Android JNI bugs.