Assuming that the issue is because you grabbing the information from a recycled view. you might probably using an OnItemClickedListener and on the onItemClicked is using the information from the View to decide what's the item. You might want to get the data from the adapter using the position parameter instead of the view parameter. Definitely if you post some pieces of the involved would clarify what's going on.
On Feb 22, 9:38 pm, abhishek sharma <[email protected]> wrote: > I have a cursor adapter .The list which is getting populated from the > cursor,has got an imageView in each of its item.Tapping that imageVIew > updates a boolean field in database and changes the colour of the > imageView from grey o yellow and vice versa. > > Sometimes(not everytime) tapping a first Item's Image updates last > Item's image and database corresponding to that item as well. > This ambiguous behavior is consistent in its ambiguity i.e., first > item is mapped with last,second item is mapped with second last,third > with third last.Why is it happening so? > Please enlighten -- 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

