零基礎(chǔ)入門移動(dòng)端爬蟲(chóng)培訓(xùn)班r0ysue
private void stringFromJNI() {
? ? ? ?// Jni調(diào)用的類
? ? ? ?cNative = vm.resolveClass("com/fenfei/myndk/MainActivity");
? ? ? ?DvmObject<?> strRc = cNative.callStaticJniMethodObject(emulator,"stringFromJNI()Ljava/lang/String;");
? ? ? ?System.out.println("call stringFromJNI rc = " + strRc.getValue());
? ?}
標(biāo)簽: