Refactor JNI code to follow Android tips

Also commiting code to reproduce bug in Android for bug report
Work around Android JNI bug. Also use namespaces for NativeMapView.
More work on JNI code