[android-developers] Re: Need help with a keylistener

2009-10-22 Thread Bolletje
I want to save the keycode of the first key pressed after the button is clicked. On 22 okt, 05:19, Lance Nanek lna...@gmail.com wrote: There are some focus related methods on the View class: requestFocus, setFocusable, setFocusableInTouchMode. In this case arg0 is the button that was clicked,

[android-developers] Re: Need help with a keylistener

2009-10-22 Thread Bolletje
I fixed it by creating a EditText and using that view for the keylistener. It works now, but is there maybe a more elegant way to do this? On 22 okt, 20:24, Bolletje bolle...@gmail.com wrote: I want to save the keycode of the first key pressed after the button is clicked. On 22 okt, 05:19

[android-developers] Need help with a keylistener

2009-10-21 Thread Bolletje
I got stuck a few days ago and I don't seem to make any headway so hopefully someone can help me. I want to set a key in my settings after the click of a button, but I can't add a keylistener to the View.OnClickListener or to the View arg0. Then I made it like this: bUP2.setOnClickListener(new