Thanks to both.  That was my understanding, but then I run into a
problem with the java language. If I declare the rowId variable as
local in the onOptionsItemSelected() then the compiler complains that:
"local variable rowId is accessed from within inner class; needs to be
declared final".
And declaring it as a class variable seems like an overkill to me.

Best regards,

  Jorge

On Sep 6, 8:45 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> > When you open the AlertDialog, the row in the ListActivity is no longer
> > selected. I'd argue this is a bug -- opening a dialog should not affect
> > the state of the underlying activity -- but there might be a good reason
> > the Android team did it this way.
>
> It is not a bug. There is only one selection/focused widget on screen
> at a time. Opening a dialog makes the underlying window loses the
> focus, and when a window doesn't have focus, it does not contain any
> selection or focused widget.
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to