Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


6,509 Points

How to mark the listview row checked using volley?

I have a list of users in json format that i used to populate the listview using volley framework. I used the default android layout rather than creating the custom layout. When i click on the users row, that user info is stored in the database.

I am making another call to that database to access the user info stored in it.

E.g: The list of users: [{"name" : "joe"}, {"name" : "randy"}, {"name" : "ronda"}, {"name" : "smith"}]. This info is coming from table A.

Lets say from the listview, I have selected joe and smith, which is stored in one of the table in the database. E.g: [{"name" : "joe"},{"name" : "smith"} ]. This info is coming from table B. I am using volley to get all this info in the app.

The problem is that how to mark the listview row checked for users coming from table B.

I have searched for such scenario online, but was not able to find one.

Any help is highly appreciated!