request focus for EditText in an SurfaceView Activity with overlay of EditText
<p>Friends,</p>

<p>i m developing a Game.
 All the drawings are handled by my sSurfaceViewClass, which is an Activity extending SurfaceView.
I overlay a few custom ui components, mainly buttons and textviews. </p>

<p>Everything works fine except of the overlay of the EditText.
I can not request focus for the EditText programmatically.
I want the focus on the EditText when the activty gets created. What means the keyboard pops up and the cursor is in the EditText, waiting for the input.
Heres part of my code: </p>

<pre><code>            addContentView(surfaceViewClass, layoutParamsCompleteLayout);


            editTextKeyboard = new EditText(this);
            editTextKeyboard.requestFocus();
    editTextKeyboard.setAlpha(0);
    editTextKeyboard.setSingleLine();
    editTextKeyboard.setImeOptions(EditorInfo.IME_FLAG_NO_FULLSCREEN);
    editTextKeyboard.setFocusableInTouchMode(true);

            addContentView(editTextKeyboard, layoutParamsCompleteLayout);
</code></pre>

<p>with the method requestFocus() it works usually fine. But in this case ( surfaceView plus overlay ) it does not. </p>

<p>I m glad about any support. Also a workaround would help me a lot!</p>

<p>Thx</p>
