Adding edittext to CClayer in android cocos2d-1
<p>How can I add edittext,textview to the CCLayer in android cocos2d-1?</p>

<p>I have tried this code:</p>

<pre><code>CCDirector.sharedDirector().getActivity().runOnUiThread(new Runnable() {
    public void run() {
        final EditText name=new EditText(CCDirector.sharedDirector().getActivity());
        setView(name); 
    }
});
</code></pre>

<p>But here I want to setview to the CCLayer.</p>
