Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

aakarshrestha
aakarshrestha
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!