• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Return list from listview's adapter

estex198

Lurker
I'm new to Android programming. I'm trying to return a list of Products stored in an adapter accessed by a listview in my application. How do I do this? I've tried

Code:
listview.getAdapter()

which does return the correct name using the toString() method, but not the actual Product object.
I can't seem to find any other threads pertaining to this question, though I may not be correctly wording the situation. Please help!
 
Back
Top Bottom