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.

Android

Jourdan Dixon
Jourdan Dixon
4,752 Points

How do you filter a list (ID, Title, Descr, CatID) based on a multi-select drop down (CatID) on the previous activity?

I'm trying to think of a good way to filter a list view of games in Activity B where each game has a category ID. I'd like to do this based on which Category IDs the user selects from a multi select drop down (CatID, CatName) on the previous activity, Activity A. I'm hitting my head against a wall, here! I'm thinking SQLite DB and create a dynamic WHERE changing the CatID Array to a csv String. Something like "WHERE CatID IN (csv String)". That's the idea, but putting it in action is another story. Does anyone know of a basic example of something like that? I can't seem to find anything. :)