You can always get the currently selected item in the ListActivity with ListActivity.getSelectedItemPosition(). While preparing your options menu you could check the currently selected item and modify your menu as needed.
On Apr 24, 5:17 pm, shaimailit <[EMAIL PROTECTED]> wrote: > Hi, > I guess it's a newbie question (which i am... :) > > I would like to know what list item is selected in different > procedures, and not only when it is being clicked (onListItemClick > method). > for example, during onPrepareOptionsMenu invocation. > How can this be achieved? > > Thanks, > Shai --~--~---------~--~----~------------~-------~--~----~ 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 M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

