title: app_glue android NDK : GetMethodID Fails with TextView.setText call
body: <p>I'm working on a native android project with NDK. My code is only C and I need to call some java function via JNI.</p>
  
  <p>I tried and I am able to call some method from the class such as <code>android</code>, <code>view</code>, <code>WindowManage</code>. But when I try to use the <code>TextView.setText</code> I get a <code>java.lang.NoSuchMethodError</code> exception.</p>
  
  <p>Here is the code :</p>
  
  <pre><code> JNIEnv* jni;
   state-&gt;activity-&gt;vm-&gt;AttachCurrentThread(&amp;jni, NULL);
  
  
   jclass activityClassMine = jni-&gt;FindClass("android/widget/TextView");
   if(!(activityClassMine))
   LOGI("can't find TextView class...");
  
   jmethodID SetTextColour = jni-&gt;GetMethodID
                                ( activityClassMine
                                , "setTextColor"
                                , "(I)V");        //this works !!!!
   if(!(SetTextColour))
  LOGI("textColour Failed...");
  
   jmethodID getSetText = jni-&gt;GetMethodID
                                ( activityClassMine
                                , "setText"
                                , "(Ljava/lang/CharSequence;)V");
  
   if(!(getSetText))      //failed                               
   LOGI("setText Failed");
  </code></pre>
  
  <p>I have checked the signature of the method and that is ok, I've tried other available signature for this method but no success ...</p>