¡@

Home 

2014/10/16 ¤W¤È 08:19:14

android Programming Glossary: messageme

Calling a java method from c++ in Android

http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android

R.id.textview tv.setText this.getJniString public void messageMe String text System.out.println text public native String getJniString.. public native String getJniString I'm trying to call a messageMe method from native code in the process of getJniString method.. Get the method that you want to call jmethodID messageMe env GetMethodID clazz messageMe Ljava lang String V Call the..

Calling a java method from c++ in Android

http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android

setContentView R.layout.main TextView tv TextView findViewById R.id.textview tv.setText this.getJniString public void messageMe String text System.out.println text public native String getJniString I'm trying to call a messageMe method from native.. public void messageMe String text System.out.println text public native String getJniString I'm trying to call a messageMe method from native code in the process of getJniString method call from java to native. native.cpp #include string.h #include.. you need to call jclass clazz env FindClass the package MainActivity Get the method that you want to call jmethodID messageMe env GetMethodID clazz messageMe Ljava lang String V Call the method on the object jobject result env CallObjectMethod jstr..