apply general onkeylistener
<p>New to programming, now to android. So I hope I dont annoy you to much.</p>

<p>How would I go about setting an onkeylistener at the top level of the app that captured the keyevent no matter what.</p>

<p>Basically what i have is a linear layout with dynamically added edittexts.
I want to capture the Enter key event and have it get the current edittext, perform some tests then create a new edittext and add it to the layout. </p>

<p>I know I can (and have) implement an onkeylistener to individual child views, but not being a programmer, the logic seems weird to create an edittext that listens for input to create another edittext that listens for input to create another.... (you see where this goes)</p>

<p>Can anyone point me in the right direction? 
I have lots more info about what Im trying to do, I just dont know what is pertinent and what is not, so let me know if you need more.</p>

<p>Thanks for your time in advance,
Chris</p>
