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

Recyclerview onClick for each item

Hi,  I'm building my app using  cardviews with recyclerview (retrieving the images from firebase database into the cardviews ), when a cardview is clicked, it starts a new activity with a slidershow images (Slidershow.java),  I have implemented onClickListener and it is working fine, but now I would like to start the same slidershow Activity identifying the cardview selected, then placing  a conditional in my destination activity to load different images into the slidershow depending on the cardview selected...My goal here is to show a different slidershow images for each cardview. I know that I have to call .putExtra () to pass the data but for this moment , I got stuck here :/. Would you please give me a hand with this? I really appreciate your help :) This is my code https://github.com/Zukune/InventoryTest/blob/master/app/src/main/java/com/mangaschool_app/testfirebase/MainActivity.java

Thank you so much, see ya

Mod edit, changed category to Android