Calling methods on objects in a ListView
<p>I have a listview that is populated by a by objects from an "Offer" class I've written. Obviously, the <code>toString()</code> method is called and that's the text that's displayed in each list item. My question is, how do I implement an <code>onItemClickListener</code> that will call one of my getter or setter methods on the particular object whose toString method had been used to populate that item? </p>

<p>For example, I'd like to raise a toast or something when an item is clicked that retrieves a string my <code>getClaimCode()</code> method and displays in the toast (or whatever other dialog or even a new activity).</p>

<p>can I just call the methods by doing something like <code>item.getClaimCode()</code>...?</p>
