intermediary JNI work

find bug
substantial JNI gluing work, plus android text manager start