setSelection doesn't generate any events, so your listener never hear anything. I think someone worked out a way to inject an event but I can't find it now.
On Feb 11, 4:02 pm, Alexey <[email protected]> wrote: > Hi i have a gallery created from code and it has > OnItemSelectedListener . > I set selected item from the code by mGallery.setSelection(idx); > and expect a callback into my onItemSelected > But it't doesn't happen - how i can trigger onItemSelected to get hit > from code ? > > thanks Alex --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

