Custom java method called from C++ causes ClassNotFoundException

You can use GameActivity.Get() to access the activity, so you can do something like this in your JNI Java code:


GameActivity.Get().runOnUIThread(new runnable()
  {
      public void run()
      {
          .. do stuff
      }
  });

Take a look in MessageBox01.java for an example.