title: Android NDK calling native method with different namespace
body: <p>i'm new from JNI programming
  Can i call a native method like from a different JNI namespace definition?</p>
  
  <p>For example:</p>
  
  <pre><code>package com.example.hellojni;
  public class HelloJni extends Activity
  {
    public native int MyMethod();  
    public native int OtherMethod();   // this works have the namespace package=jniexport interface
  
    static {System.loadLibrary("hello-jni");}
  
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
  
      int b = OtherMethod(); //works
      int a = MyMethod(); //ERROR java.lang.reflect.InvocationTargetException 
   }
  }
  
     ================File.c================
      JNIEXPORT int JNICALL Java_Cardioline_HelloJni_MyMethod(JNIEnv *env, jobject thisObj) 
    {
  return 1;
    }
     JNIEXPORT int JNICALL Java_com_example_hellojni_HelloJni_OtherMethod(JNIEnv *env, jobject thisObj)
   {
   return 2;
    }
  </code></pre>