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.