cocos2d/cocos2d-x — pull request #3534 by ledyba (2013-09-03 16:52:13+00:00)
Title: Reimplement EditBox for android

In cocos2d-x in 3, implementation of "EditBox" for Android is broken.

So, I reimplemented that. Here are the points.

( I sent this pull request before, but Travis CI has crashed, so I resend this. )

### Create Cocos2dxHelperListenerImpl

In version 2, Cocos2dxActivity implements Cocos2dxHelperListener, but that activity does not exist any more.

So I create the classs "Cocos2dxHelperListenerImpl" that implements Cocos2dxHelperListener.

This class is used only in Cocos2dxHelper, so I locate that class in Cocos2dxHelper.java.

### Use std::atomic to send modified text instead of executing function on GLThread.

In version 2, Cocos2dxActivity used GLSurfaceView#queueEvent (in runOnGLThread) to invoke native funtion that update native EditBox object, but in version 3, we do not used GLSurfaceView.

There is no way to invoke any function under cocos2d-x loop thread ( just like Android Handler class), so I use std::atomic to send the modified text to cocos2d-x main loop thread.

thanks.