Hi All,
I have a java method Log_d:
//JAVA
public static void Log_d(String log){
RdcLog.d(log);
}
I'm trying to call it from "C" via JNI as follows:
//C
void LOGD(char* log)
{
jstring jStrLog = NULL;
if(log != NULL)
{
jStrLog = (*javaEnv)->NewStringUTF(javaEnv, log);
if(jStrLog != NULL)
{
jmethodID methodId = (*javaEnv)->GetStaticMethodID
(javaEnv, javaClass, "Log_d", "([Ljava/lang/String;)V");
/* Call debugLog() function of RdcJni.java */
(*javaEnv)->CallStaticVoidMethod(javaEnv, javaClass,
methodId, jStrLog);
}
}
}
But in runtime, I get a "Ljava/lang/NoSuchMethodError;: Log_d"
Exception.
can you pls help me on this.
Thanks,
Abhijith K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---