Thanks for the prompt reply. I actually did. But it did not show any
effect. Here is what I did:
   I set it to null before populating the saved data. And after
populating, I set the listener back, so that if the selection is
changed, I can get new data according to the selection.  My guess is
that, since the OnItemSelectedListener is an asynchronous listener,
soon after I set the listener back, it is calling onItemSelected()
method.

On Aug 15, 3:38 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Mon, Aug 15, 2011 at 4:36 PM, venkata raidu <venkata.ra...@gmail.com> 
> wrote:
> > I see that there is no method for Android to remove the listener.
>
> Have you tried setOnItemSelectedListener(null)?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to