[android-developers] Re: AlertDialog OnKeyListener - How to get Focused Item?

2008-12-27 Thread coderiver
I figured this out so I thought I would share. The handleKeyPress method that is called from my OnKey handler is part of my Activity object. So this is an activity not a dialog. So to get the focused item is pretty simple, I needed to keep a reference to the AlertDialog (mAlertDialog in the

[android-developers] Re: AlertDialog OnKeyListener - How to get Focused Item?

2008-12-22 Thread coderiver
I am thinking I need to override the dialog and track the position of the focused item myself. That seems kind of risky in case they ever get out of synch. Am I missing something obvious? Thanks! On Dec 20, 1:52 pm, coderiver coderi...@gmail.com wrote: I have an AlertDialog

[android-developers] AlertDialog OnKeyListener - How to get Focused Item?

2008-12-21 Thread coderiver
I have an AlertDialog with an OnKeyListener. I need to find the focused item when the Call key is pressed. This AlertDialog also has an OnClickListener that works great - I get the position of the item from my view when it is clicked. What I also want to do - is get the position of the currently