Test ends with double press back button in CCTextFieldTTF

1.open TextInputTest
2.go to editation mode
2.press HW back button twice

cocos2d-1.0.1-x-0.10.0

Solution:

Add this code to Cocos2dxActivity.java

@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
    if ((keyCode == KeyEvent.KEYCODE_BACK))
    {
         return true;//always consume, otherwise suspend application
    }
    else
    {
        return super.onKeyDown(keyCode, event);
    }
}