call c++ ui function in native

In Activity I call UI change c++ function.
In this function,I change Label text but can't change label text.
Debug log said "call to OpenGL ES API with no current context (logged once per thread)"

To avoid this problem call function in OPENGL Thread.
For example in activity.


Cocos2dxGLSurfaceView.getInstance().queueEvent(new Runnable() {
    @Override
    public void run() {
        // call ui change function
    }
});		
		
このエントリーをはてなブックマークに追加