I am trying to define constant in .C file and use that constant in .Class file in my class. How can I do that? I am totally new for NDK. I defined constant here.
const jstring BASE_URL ="http://www.google.com";'
currently i am using that constant by calling an method
jstring
Java_com_example_hellojni_HelloJni_variableData(JNIEnv *env) {
return (*env)->NewStringUTF(env, BASE_URL);
}
How can i Use it directly in my java code