Changeg package of jni to correct one. Transfered some code to NativeController